Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Liveness ¶
type Liveness struct {
// contains filtered or unexported fields
}
func NewLiveness ¶
func NewLiveness(timeSource clock.TimeSource, ttl time.Duration, broadcastShutdownFn func()) *Liveness
NewLiveness creates a Liveness daemon that calls the broadcastShutdownFn if it does not receive MarkAlive() within ttl NOTE: livesness needs to be stopped explicitly to avoid go routine leak
Click to show internal directories.
Click to hide internal directories.