Documentation ¶
Overview ¶
Package tasks in an experimental package which serves as an extension that lets users run a function at a specified interval
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task represents a task that will run a function at a specified interval
type TaskManager ¶
type TaskManager struct {
// contains filtered or unexported fields
}
TaskManager represents a manager that holds the different tasks
func NewTaskManager ¶
func NewTaskManager() *TaskManager
NewTaskManager creates a new task manager with empty tasks
func (*TaskManager) GetTasks ¶
func (m *TaskManager) GetTasks() []*Task
GetTasks returns all the tasks the manager holds
Click to show internal directories.
Click to hide internal directories.