Documentation ¶ Index ¶ type Poller func NewPoller() *Poller func (task *Poller) RandRun(ctx context.Context, minInterval, maxInterval time.Duration, do TaskFunc) func (task *Poller) Run(ctx context.Context, interval time.Duration, do TaskFunc) func (task *Poller) Times() uint type TaskFunc Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Poller ¶ type Poller struct { // contains filtered or unexported fields } func NewPoller ¶ func NewPoller() *Poller func (*Poller) RandRun ¶ func (task *Poller) RandRun(ctx context.Context, minInterval, maxInterval time.Duration, do TaskFunc) func (*Poller) Run ¶ func (task *Poller) Run(ctx context.Context, interval time.Duration, do TaskFunc) func (*Poller) Times ¶ func (task *Poller) Times() uint type TaskFunc ¶ type TaskFunc = func(context.Context) Source Files ¶ View all Source files poller.go Click to show internal directories. Click to hide internal directories.