healthchecksio

package
v0.0.0-...-89564b7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrStatusCode = errors.New("bad status code")

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(httpClient *http.Client, baseURL, uuid string) *Client

New creates a new healthchecks.io client. If passed an empty uuid string, it acts as no-op implementation.

func (*Client) Ping

func (c *Client) Ping(ctx context.Context, state State) (err error)

type State

type State string
const (
	Ok    State = "ok"
	Start State = "start"
	Fail  State = "fail"
	Exit0 State = "0"
	Exit1 State = "1"
)

Jump to

Keyboard shortcuts

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