Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheck ¶
type HealthCheck interface {
IsHealthy() bool
}
type Server ¶
type Server struct { healthpb.UnimplementedHealthServer // contains filtered or unexported fields }
Server implements grpc health checks
func (*Server) AddHealthCheck ¶
func (s *Server) AddHealthCheck(service string, check HealthCheck)
func (*Server) Check ¶
func (s *Server) Check(ctx context.Context, in *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error)
func (*Server) Watch ¶
func (s *Server) Watch(in *healthpb.HealthCheckRequest, stream healthpb.Health_WatchServer) error
Click to show internal directories.
Click to hide internal directories.