Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientHealthChecker ¶
type ClientHealthChecker struct {
// contains filtered or unexported fields
}
ClientHealthChecker contains the port and check function callback
func NewClientHealthChecker ¶
func NewClientHealthChecker(port string, f checkFunction) *ClientHealthChecker
NewClientHealthChecker function will return new ClientHealthChecker struct with specified port and checkFunction
func (*ClientHealthChecker) StartProbes ¶
func (s *ClientHealthChecker) StartProbes()
StartProbes will initilize http endpoints for liviness (/live) and readiness (/ready) checks
type ServerHealthChecker ¶
type ServerHealthChecker struct {
// contains filtered or unexported fields
}
ServerHealthChecker struct
func NewServerHealthChecker ¶
func NewServerHealthChecker(port string, key string, checkFunc checkFunction) *ServerHealthChecker
NewServerHealthChecker function generates a ServerHealthChecker struct You can specify a custom readiness function in checkFunc parameter
func (*ServerHealthChecker) Check ¶
func (s *ServerHealthChecker) Check(ctx context.Context, req *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
Check is a method function on ServerHealthChecker struct
func (*ServerHealthChecker) Watch ¶
func (s *ServerHealthChecker) Watch(req *grpc_health_v1.HealthCheckRequest, server grpc_health_v1.Health_WatchServer) error
Watch is a method function on ServerHealthChecker struct Method is currently not implemented - throws grpc status error
Click to show internal directories.
Click to hide internal directories.