healthchecksio

package
v0.21.10 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package healthchecksio is a wrapper for API calls to HealthChecks.io

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 convenient way to ping HealthChecks.io

func New

func New(uuid string, c *http.Client) *Client

New returns a configured client. If c is nil, http.DefaultClient is used.

func (*Client) Start

func (cl *Client) Start(ctx context.Context) (err error)

Start calls the start HealthChecks.io endpoint

func (*Client) Status

func (cl *Client) Status(ctx context.Context, code int, msg []byte) (err error)

Status calls the HealthChecks.io status endpoint

Jump to

Keyboard shortcuts

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