...
Package health
Overview ▹
Index ▹
type Server ¶
Server implements `service Health`.
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer() *Server
NewServer returns a new Server.
func (*Server) Check ¶
func (s *Server) Check(ctx context.Context, in *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error)
Check implements `service Health`.
func (*Server) SetServingStatus ¶
func (s *Server) SetServingStatus(service string, status healthpb.HealthCheckResponse_ServingStatus)
SetServingStatus is called when need to reset the serving status of a service or insert a new service entry into the statusMap.
Subdirectories
Name | Synopsis |
---|---|
.. | |
grpc_health_v1 | Package grpc_health_v1 is a generated protocol buffer package. |