Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterHealthHTTPServer(s *http.Server, srv HealthHTTPServer)
- func RegisterHealthServer(s grpc.ServiceRegistrar, srv HealthServer)
- type HealthClient
- type HealthHTTPClient
- type HealthHTTPClientImpl
- type HealthHTTPServer
- type HealthServer
- type UnimplementedHealthServer
- type UnsafeHealthServer
Constants ¶
const (
Health_Check_FullMethodName = "/wilson.api.container.health.v1.Health/Check"
)
const OperationHealthCheck = "/wilson.api.container.health.v1.Health/Check"
Variables ¶
var File_container_health_v1_health_proto protoreflect.FileDescriptor
var File_container_health_v1_health_service_proto protoreflect.FileDescriptor
var Health_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wilson.api.container.health.v1.Health", HandlerType: (*HealthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Check", Handler: _Health_Check_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "container/health/v1/health_service.proto", }
Health_ServiceDesc is the grpc.ServiceDesc for Health service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHealthHTTPServer ¶
func RegisterHealthHTTPServer(s *http.Server, srv HealthHTTPServer)
func RegisterHealthServer ¶
func RegisterHealthServer(s grpc.ServiceRegistrar, srv HealthServer)
Types ¶
type HealthClient ¶
type HealthClient interface {
Check(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
HealthClient is the client API for Health service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHealthClient ¶
func NewHealthClient(cc grpc.ClientConnInterface) HealthClient
type HealthHTTPClient ¶
type HealthHTTPClient interface {
Check(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}
func NewHealthHTTPClient ¶
func NewHealthHTTPClient(client *http.Client) HealthHTTPClient
type HealthHTTPClientImpl ¶
type HealthHTTPClientImpl struct {
// contains filtered or unexported fields
}
type HealthHTTPServer ¶
type HealthServer ¶
type HealthServer interface { Check(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // contains filtered or unexported methods }
HealthServer is the server API for Health service. All implementations must embed UnimplementedHealthServer for forward compatibility.
type UnimplementedHealthServer ¶
type UnimplementedHealthServer struct{}
UnimplementedHealthServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
type UnsafeHealthServer ¶
type UnsafeHealthServer interface {
// contains filtered or unexported methods
}
UnsafeHealthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HealthServer will result in compilation errors.