package grpc_health_v1

Import Path
	google.golang.org/grpc/health/grpc_health_v1 (on go.dev)

Dependency Relation
	imports 9 packages, and imported by one package

Involved Source Files health.pb.go health_grpc.pb.go
Package-Level Type Names (total 12, in which 11 are exported)
/* sort exporteds by: | */
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
Service string Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead. (*HealthCheckRequest) GetService() string (*HealthCheckRequest) ProtoMessage() (*HealthCheckRequest) ProtoReflect() protoreflect.Message (*HealthCheckRequest) Reset() (*HealthCheckRequest) String() string *HealthCheckRequest : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage *HealthCheckRequest : google.golang.org/protobuf/runtime/protoiface.MessageV1 *HealthCheckRequest : expvar.Var *HealthCheckRequest : fmt.Stringer func HealthClient.Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) func HealthClient.Watch(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[HealthCheckResponse], error) func HealthServer.Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) func HealthServer.Watch(*HealthCheckRequest, grpc.ServerStreamingServer[HealthCheckResponse]) error func UnimplementedHealthServer.Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) func UnimplementedHealthServer.Watch(*HealthCheckRequest, grpc.ServerStreamingServer[HealthCheckResponse]) error func google.golang.org/grpc/health.(*Server).Check(_ context.Context, in *HealthCheckRequest) (*HealthCheckResponse, error) func google.golang.org/grpc/health.(*Server).Watch(in *HealthCheckRequest, stream Health_WatchServer) error
Status HealthCheckResponse_ServingStatus Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead. (*HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus (*HealthCheckResponse) ProtoMessage() (*HealthCheckResponse) ProtoReflect() protoreflect.Message (*HealthCheckResponse) Reset() (*HealthCheckResponse) String() string *HealthCheckResponse : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage *HealthCheckResponse : google.golang.org/protobuf/runtime/protoiface.MessageV1 *HealthCheckResponse : expvar.Var *HealthCheckResponse : fmt.Stringer func HealthClient.Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) func (*HealthListResponse).GetStatuses() map[string]*HealthCheckResponse func HealthServer.Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) func UnimplementedHealthServer.Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) func google.golang.org/grpc/health.(*Server).Check(_ context.Context, in *HealthCheckRequest) (*HealthCheckResponse, error)
( HealthCheckResponse_ServingStatus) Descriptor() protoreflect.EnumDescriptor ( HealthCheckResponse_ServingStatus) Enum() *HealthCheckResponse_ServingStatus Deprecated: Use HealthCheckResponse_ServingStatus.Descriptor instead. ( HealthCheckResponse_ServingStatus) Number() protoreflect.EnumNumber ( HealthCheckResponse_ServingStatus) String() string ( HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType HealthCheckResponse_ServingStatus : google.golang.org/protobuf/reflect/protoreflect.Enum HealthCheckResponse_ServingStatus : expvar.Var HealthCheckResponse_ServingStatus : fmt.Stringer func (*HealthCheckResponse).GetStatus() HealthCheckResponse_ServingStatus func HealthCheckResponse_ServingStatus.Enum() *HealthCheckResponse_ServingStatus func google.golang.org/grpc/health.(*Server).SetServingStatus(service string, servingStatus HealthCheckResponse_ServingStatus) const HealthCheckResponse_NOT_SERVING const HealthCheckResponse_SERVICE_UNKNOWN const HealthCheckResponse_SERVING const HealthCheckResponse_UNKNOWN
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. Health is gRPC's mechanism for checking whether a server is able to handle RPCs. Its semantics are documented in https://github.com/grpc/grpc/blob/master/doc/health-checking.md. Check gets the health of the specified service. If the requested service is unknown, the call will fail with status NOT_FOUND. If the caller does not specify a service name, the server should respond with its overall health status. Clients should set a deadline when calling Check, and can declare the server unhealthy if they do not receive a timely response. List provides a non-atomic snapshot of the health of all the available services. The server may respond with a RESOURCE_EXHAUSTED error if too many services exist. Clients should set a deadline when calling List, and can declare the server unhealthy if they do not receive a timely response. Clients should keep in mind that the list of health services exposed by an application can change over the lifetime of the process. Performs a watch for the serving status of the requested service. The server will immediately send back a message indicating the current serving status. It will then subsequently send a new message whenever the service's serving status changes. If the requested service is unknown when the call is received, the server will send a message setting the serving status to SERVICE_UNKNOWN but will *not* terminate the call. If at some future point, the serving status of the service becomes known, the server will send a new message with the service's serving status. If the call terminates with status UNIMPLEMENTED, then clients should assume this method is not supported and should not retry the call. If the call terminates with any other status (including OK), clients should retry the call with appropriate exponential backoff. func NewHealthClient(cc grpc.ClientConnInterface) HealthClient
Deprecated: Use HealthListRequest.ProtoReflect.Descriptor instead. (*HealthListRequest) ProtoMessage() (*HealthListRequest) ProtoReflect() protoreflect.Message (*HealthListRequest) Reset() (*HealthListRequest) String() string *HealthListRequest : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage *HealthListRequest : google.golang.org/protobuf/runtime/protoiface.MessageV1 *HealthListRequest : expvar.Var *HealthListRequest : fmt.Stringer func HealthClient.List(ctx context.Context, in *HealthListRequest, opts ...grpc.CallOption) (*HealthListResponse, error) func HealthServer.List(context.Context, *HealthListRequest) (*HealthListResponse, error) func UnimplementedHealthServer.List(context.Context, *HealthListRequest) (*HealthListResponse, error) func google.golang.org/grpc/health.(*Server).List(_ context.Context, _ *HealthListRequest) (*HealthListResponse, error)
statuses contains all the services and their respective status. Deprecated: Use HealthListResponse.ProtoReflect.Descriptor instead. (*HealthListResponse) GetStatuses() map[string]*HealthCheckResponse (*HealthListResponse) ProtoMessage() (*HealthListResponse) ProtoReflect() protoreflect.Message (*HealthListResponse) Reset() (*HealthListResponse) String() string *HealthListResponse : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage *HealthListResponse : google.golang.org/protobuf/runtime/protoiface.MessageV1 *HealthListResponse : expvar.Var *HealthListResponse : fmt.Stringer func HealthClient.List(ctx context.Context, in *HealthListRequest, opts ...grpc.CallOption) (*HealthListResponse, error) func HealthServer.List(context.Context, *HealthListRequest) (*HealthListResponse, error) func UnimplementedHealthServer.List(context.Context, *HealthListRequest) (*HealthListResponse, error) func google.golang.org/grpc/health.(*Server).List(_ context.Context, _ *HealthListRequest) (*HealthListResponse, error)
HealthServer is the server API for Health service. All implementations should embed UnimplementedHealthServer for forward compatibility. Health is gRPC's mechanism for checking whether a server is able to handle RPCs. Its semantics are documented in https://github.com/grpc/grpc/blob/master/doc/health-checking.md. Check gets the health of the specified service. If the requested service is unknown, the call will fail with status NOT_FOUND. If the caller does not specify a service name, the server should respond with its overall health status. Clients should set a deadline when calling Check, and can declare the server unhealthy if they do not receive a timely response. List provides a non-atomic snapshot of the health of all the available services. The server may respond with a RESOURCE_EXHAUSTED error if too many services exist. Clients should set a deadline when calling List, and can declare the server unhealthy if they do not receive a timely response. Clients should keep in mind that the list of health services exposed by an application can change over the lifetime of the process. Performs a watch for the serving status of the requested service. The server will immediately send back a message indicating the current serving status. It will then subsequently send a new message whenever the service's serving status changes. If the requested service is unknown when the call is received, the server will send a message setting the serving status to SERVICE_UNKNOWN but will *not* terminate the call. If at some future point, the serving status of the service becomes known, the server will send a new message with the service's serving status. If the call terminates with status UNIMPLEMENTED, then clients should assume this method is not supported and should not retry the call. If the call terminates with any other status (including OK), clients should retry the call with appropriate exponential backoff. UnimplementedHealthServer *google.golang.org/grpc/health.Server func RegisterHealthServer(s grpc.ServiceRegistrar, srv HealthServer)
UnimplementedHealthServer should 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. ( UnimplementedHealthServer) Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) ( UnimplementedHealthServer) List(context.Context, *HealthListRequest) (*HealthListResponse, error) ( UnimplementedHealthServer) Watch(*HealthCheckRequest, grpc.ServerStreamingServer[HealthCheckResponse]) error UnimplementedHealthServer : HealthServer
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.
Package-Level Functions (total 8, in which 2 are exported)
Package-Level Variables (total 10, in which 4 are exported)
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)
Enum value maps for HealthCheckResponse_ServingStatus.
Enum value maps for HealthCheckResponse_ServingStatus.
Package-Level Constants (total 8, in which 7 are exported)
const Health_Check_FullMethodName = "/grpc.health.v1.Health/Check"
const Health_List_FullMethodName = "/grpc.health.v1.Health/List"
const Health_Watch_FullMethodName = "/grpc.health.v1.Health/Watch"