healthchecksio

package
v0.21.7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 5 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) error

Start calls the start HealthChecks.io endpoint

func (*Client) Status

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

Status calls the HealthChecks.io status endpoint

type StatusErr

type StatusErr int

StatusErr represents an unexpected response status from HealthChecks.io

func (StatusErr) Error

func (se StatusErr) Error() string

func (StatusErr) String

func (se StatusErr) String() string

Jump to

Keyboard shortcuts

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