Documentation ¶
Overview ¶
Package healthcheck provides a health check client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a health check client.
func NewClient ¶
func NewClient(ctx context.Context, l *logger.Logger, addr string, opts []grpc.DialOption) (client *Client, err error)
NewClient creates a new health check client.
func (*Client) Check ¶
func (g *Client) Check(ctx context.Context, _ *grpc_health_v1.HealthCheckRequest, _ ...grpc.CallOption) (*grpc_health_v1.HealthCheckResponse, error)
Check checks the health of the service.
func (*Client) Watch ¶
func (g *Client) Watch(_ context.Context, _ *grpc_health_v1.HealthCheckRequest, _ ...grpc.CallOption) (grpc_health_v1.Health_WatchClient, error)
Watch is not implemented.
Click to show internal directories.
Click to hide internal directories.