Documentation
¶
Index ¶
- func AwaitAlive(ctx context.Context, c *Client, freq time.Duration, tags []string, ...) (bool, error)
- func AwaitHealthy(ctx context.Context, c *Client, freq time.Duration, tags []string, ...) (bool, error)
- func AwaitReady(ctx context.Context, c *Client, freq time.Duration, tags []string, ...) (bool, error)
- type Client
- func (c *Client) Health(ctx context.Context, tags []string, options ...rpc.Option) (*apihealth.APIReply, error)
- func (c *Client) Liveness(ctx context.Context, tags []string, options ...rpc.Option) (*apihealth.APIReply, error)
- func (c *Client) Readiness(ctx context.Context, tags []string, options ...rpc.Option) (*apihealth.APIReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitAlive ¶
func AwaitAlive(ctx context.Context, c *Client, freq time.Duration, tags []string, options ...rpc.Option) (bool, error)
AwaitAlive polls the node every [freq] until the node reports liveness. Only returns an error if [ctx] returns an error.
Types ¶
type Client ¶
type Client struct {
Requester rpc.EndpointRequester
}
func (*Client) Health ¶
func (c *Client) Health(ctx context.Context, tags []string, options ...rpc.Option) (*apihealth.APIReply, error)
Health returns a summation of the health of the node
Click to show internal directories.
Click to hide internal directories.