restapi

package
v0.0.0-...-77190f8 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Router *httprouter.Router
	// contains filtered or unexported fields
}

API is the state management for webapi

func NewAPI

func NewAPI(c *heartbeat.Check) *API

NewAPI is the constructor for the API object

func (*API) Status

func (a *API) Status(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

Status reports the status of the checker. 200 if ok 503 if not

Jump to

Keyboard shortcuts

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