health

package
v0.0.0-...-276be26 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(e *echo.Echo)

func SetUpdater

func SetUpdater(updater func(h *Health, tm *time.Time))

SetUpdater checks in an updater with health-check period. It does just work for consul health checking mechanism.

func Update

func Update(c func(*Health))

Types

type Handlers

type Handlers struct {
}

type Health

type Health struct {
	Status  bool    `json:"status"`
	Msg     string  `json:"msg"`
	App     *string `json:"app"`
	Ver     *string `json:"ver"`
	Githash *string `json:"githash"`
	Builtts *string `json:"builtts"`
}

Jump to

Keyboard shortcuts

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