Help us shape the future of Go! Take the 2026 Go Developer Survey

health

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2016 License: MIT Imports: 2 Imported by: 14

README

health-check

A small Go package for quickly adding a /health endpoint to RESTful APIs

Installation

go get github.com/jessemillar/health

Usage

import "github.com/jessemillar/health"
func main() {
	port := ":8000"
	router := echo.New()

	router.GET("/health", echo.WrapHandler(http.HandlerFunc(health.Check)))

	router.Start(port)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(writer http.ResponseWriter, request *http.Request)

Check returns a message indicating that the service is awake and listening

Types

This section is empty.

Jump to

Keyboard shortcuts

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