Documentation ¶
Overview ¶
Package heart provides a simple and generic heartbeat mechanism that oversees the pinging of some entities and reports various events through callbacks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heart ¶
type Heart struct {
// contains filtered or unexported fields
}
Heartbeat mechanism to monitor the liveliness of some entities.
func New ¶
Creates and returns a new heartbeat mechanism beating once every beat, reporting entities as dead if not seen in kill beats.
Click to show internal directories.
Click to hide internal directories.