health

package
v0.0.0-...-02e5558 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHealth

func RegisterHealth(name string, h Health) error

RegisterHealth is used for services to regist themself

Types

type Health

type Health interface {
	// GetStatus return the service status
	GetStatus() (string, string)
}

Health is used for services to register and report their status

Jump to

Keyboard shortcuts

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