Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthClient ¶
type HealthClient struct {
// contains filtered or unexported fields
}
func NewHealthClient ¶
func NewHealthClient(conn *grpc.ClientConn) (*HealthClient, error)
func (*HealthClient) Check ¶
func (h *HealthClient) Check(svcName string, timeoutDuration ...time.Duration) (grpc_health_v1.HealthCheckResponse_ServingStatus, error)
type HealthServer ¶
type HealthServer struct { DefaultHealthCheck func(ctx context.Context) grpc_health_v1.HealthCheckResponse_ServingStatus HealthCheckHandlers map[string]func(ctx context.Context) grpc_health_v1.HealthCheckResponse_ServingStatus }
func NewHealthServer ¶
func NewHealthServer(defaultCheck func(ctx context.Context) grpc_health_v1.HealthCheckResponse_ServingStatus, serviceChecks map[string]func(ctx context.Context) grpc_health_v1.HealthCheckResponse_ServingStatus) *HealthServer
func (*HealthServer) Check ¶
func (h *HealthServer) Check(ctx context.Context, req *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
func (*HealthServer) Watch ¶
func (h *HealthServer) Watch(req *grpc_health_v1.HealthCheckRequest, server grpc_health_v1.Health_WatchServer) error
Click to show internal directories.
Click to hide internal directories.