package
Version:
v1.2.3
Opens a new window with list of versions in this module.
Published: Jul 6, 2017
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Provider interface {
Status() (map[string]interface{}, error)
}
Provider is the interface status providers should implement.
type Service struct {
BuildInfo map[string]interface{}
}
Service provides HTTP status service.
NewService returns an initialized Service object.
Addr returns the address on which the Service is listening
Close closes the service.
Register registers the given provider with the given key.
ServeHTTP allows Service to serve HTTP requests.
Start starts the service.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.