Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface {
Check() error
}
Checker is an interface that handles health check status
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a implementation of healthpb.HealthServer
func (*Server) AddChecker ¶
AddChecker includes a new checker on the checkers maps
func (*Server) Check ¶
func (s *Server) Check(ctx context.Context, req *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error)
Check is a implementation of healthpb.HealthServer.Check
func (*Server) Watch ¶
func (s *Server) Watch(req *healthpb.HealthCheckRequest, srv healthpb.Health_WatchServer) error
Watch is a implementation of healthpb.HealthServer.Watch
Click to show internal directories.
Click to hide internal directories.