Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
Action represents a cancelable unit of work
type Filter ¶
Filter provides a wrapper around an action
func RestartBetween ¶
RestartBetween restarts the action after a delay as long as the time is within the time range provided. Only the hour, minute, and second
func Singleton ¶
func Singleton(heartbeat Heartbeat, opts ...SingletonOption) Filter
Singleton takes an instance and ensure that only a single instance of it will run
type SingletonOption ¶
type SingletonOption func(*singleton)
func WithElections ¶
func WithElections(d time.Duration) SingletonOption
func WithInterval ¶
func WithInterval(d time.Duration) SingletonOption
func WithLease ¶
func WithLease(d time.Duration) SingletonOption
Click to show internal directories.
Click to hide internal directories.