Documentation ¶ Index ¶ type Task func (t *Task) Close() func (t *Task) Start(first bool) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Task ¶ type Task struct { // Interval of the task being run Interval time.Duration // Execute is the task function Execute func() error // contains filtered or unexported fields } Task is a task that runs periodically. func (*Task) Close ¶ func (t *Task) Close() Close implements common.Closable. func (*Task) Start ¶ func (t *Task) Start(first bool) error Start implements common.Runnable. Source Files ¶ View all Source files task.go Click to show internal directories. Click to hide internal directories.