Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAlreadyStarted is returned when the Monitor has alreadybeen started ErrAlreadyStarted = fmt.Errorf("monitor already started") )
Functions ¶
func HandlerFunc ¶ added in v0.0.3
func HandlerFunc(monitor *Monitor) http.HandlerFunc
HandlerFunc returns an http.HandlerFunc for users to register with their system.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor is process used to manage the registered checks. It's responsible for consolidating all check reports from each check and broadcasting them out to subscribers.
func NewMonitor ¶
NewMonitor constructs and returns a monitor capable of observing the provided set of checks. Monitors must be started and can be observed.
func (*Monitor) Report ¶
Report returns a summary of information regarding the current systems health.
func (*Monitor) SetClock ¶
SetClock updates the internal clock used by the system. This must be called before the system is started. Once started, the clock cannot be changed.
Click to show internal directories.
Click to hide internal directories.