healthcheckio

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package healthcheckio is a wrapper for API calls to HealthCheck.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 HealthCheck.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 HealthCheck.io endpoint

func (*Client) Status

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

Status calls the HealthCheck.io status endpoint

type StatusErr

type StatusErr int

StatusErr represents an unexpected response status from HealthCheck.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