health

package
v0.0.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

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 ...

func (*Client) Live added in v0.0.14

func (client *Client) Live(ctx context.Context) (bool, error)

Live ...

func (*Client) Ready

func (client *Client) Ready(ctx context.Context) (bool, error)

Ready ...

type ClientInterface

type ClientInterface interface {
	Ready(ctx context.Context) (bool, error)
	Live(ctx context.Context) (bool, error)
}

ClientInterface ...

func NewHealthClient

func NewHealthClient(ctx context.Context, config config.Config, livenessValidator Validator) (ClientInterface, error)

NewHealthClient ...

type Validator added in v0.0.14

type Validator interface {
	Valid(ctx context.Context) bool
}

Validator ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL