handlers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUp

func CheckUp(name, version string) http.HandlerFunc

func Health

func Health(name, version string) http.HandlerFunc

func JSONResponse

func JSONResponse(w http.ResponseWriter, res StatusResponse)

func Ready

func Ready(name, version string) http.HandlerFunc

Types

type StatusResponse

type StatusResponse struct {
	Name    string `json:"name,omitempty"`
	Version string `json:"version,omitempty"`
	Status  string `json:"status,omitempty"`
}

Jump to

Keyboard shortcuts

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