Files
hanzoai_agent/control-plane/pkg/adminpb/grpc_stub.go
zeekay 103b77b3bb gate gRPC behind //go:build grpc
The reasoner-admin gRPC service, its middleware, and the
generated *_grpc.pb.go now require -tags grpc to compile.

Default builds use only the ZAP-native admin path. The
adminpb stub keeps `UnimplementedAdminReasonerServiceServer`
available as a zero-field struct so embedders compile.

Generated file regen via protoc will erase the build
constraint — inline comment in reasoner_admin_grpc.pb.go
flags this for the next person who runs the codegen.
2026-05-10 15:37:37 -07:00

12 lines
443 B
Go

//go:build !grpc
package adminpb
// UnimplementedAdminReasonerServiceServer is a no-op stub used when the
// `grpc` build tag is disabled. The full gRPC server interface lives in
// reasoner_admin_grpc.pb.go (gated by //go:build grpc); embedders depend
// on this empty struct so the default build still compiles.
//
// Rebuild with -tags grpc to use the real generated server skeleton.
type UnimplementedAdminReasonerServiceServer struct{}