Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct {
// Name of the task, for logging purposes
Name string
// contains filtered or unexported fields
}
Common fields for task
func (*Task) IsRunning ¶
IsRunning returns whether task is running or not
func (*Task) Start ¶
Start starts task. If task is already running, or task loop is missing, task returns error
func (*Task) Stop ¶
Stop stops task. If task is not running, return error
Source Files
¶
- task.go
Click to show internal directories.
Click to hide internal directories.