Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kicker ¶
type Kicker interface { Start(kickable Kickable) Stop() <-chan struct{} Ping() PollingInterval() uint }
Kicker is an interface to control frequency of kicking a Kickable object.
type PollingKicker ¶
type PollingKicker struct {
Interval uint
}
PollingKicker is a builder of a Kicker which kicks a Kickable repeatedly on some interval.
func (*PollingKicker) NewKicker ¶
func (cfg *PollingKicker) NewKicker() Kicker
NewKicker creates a new polling kicker instance.
Click to show internal directories.
Click to hide internal directories.