Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ticker ¶
type Ticker struct {
// contains filtered or unexported fields
}
Ticker is a worker that runs periodically
type TickerOption ¶
type TickerOption func(*Ticker)
TickerOption is an option to customize worker ticker creation
func WithTickerDuration ¶
func WithTickerDuration(pollDuration time.Duration) TickerOption
WithTickerDuration sets created handler with the specified poll duration
Click to show internal directories.
Click to hide internal directories.