Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HealthServer ¶
type HealthServer interface { Check(ctx context.Context, in *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error) Watch(in *healthpb.HealthCheckRequest, stream healthgrpc.Health_WatchServer) error SetServingStatus(service string, servingStatus healthpb.HealthCheckResponse_ServingStatus) Shutdown() Resume() }
HealthServer interface
func FromContext ¶
func FromContext(ctx context.Context) (HealthServer, error)
FromContext returns grpc_health_v1.HealthServer from service init context wrapped in context.Context
func FromInitContext ¶
func FromInitContext(init *services.InitContext) (HealthServer, error)
FromInitContext returns HealthServer from service init context
Click to show internal directories.
Click to hide internal directories.