healthcheck

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 3 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 {
	DB Pinger
}

Client is the healthcheck client.

func (*Client) Live

func (c *Client) Live(rw http.ResponseWriter, _ *http.Request)

Live is the liveness handler.

func (*Client) Ready

func (c *Client) Ready(rw http.ResponseWriter, req *http.Request)

Ready is the readiness handler.

type Pinger

type Pinger interface {
	Ping(ctx context.Context) error
}

Pinger is capable of pinging.

Jump to

Keyboard shortcuts

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