Documentation ¶ Index ¶ type Task func NewTask() *Task func (t *Task) AddTask(itv string, msg string) func (t *Task) CloseTask(idx string) func (t *Task) Do(itv int64, msg string, ctx context.Context, idx int) func (t *Task) Increase() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Task ¶ type Task struct { C chan string // contains filtered or unexported fields } func NewTask ¶ func NewTask() *Task func (*Task) AddTask ¶ func (t *Task) AddTask(itv string, msg string) func (*Task) CloseTask ¶ func (t *Task) CloseTask(idx string) func (*Task) Do ¶ func (t *Task) Do(itv int64, msg string, ctx context.Context, idx int) func (*Task) Increase ¶ func (t *Task) Increase() Source Files ¶ View all Source files cron.go Click to show internal directories. Click to hide internal directories.