schedule

package
v0.2.56 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLocationTime

func InitLocationTime(newLocal *time.Location)

func Start

func Start(context context.Context)

Types

type Scheduler

type Scheduler struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Scheduler) Add

func (t *Scheduler) Add(value *Task) *Scheduler

type Task

type Task struct {
	// contains filtered or unexported fields
}

func AtDateTime

func AtDateTime(year int, month time.Month, day, hour, minute, second int) *Task

note: Execute once at a certain point in time

func VeryDays

func VeryDays(interval uint64) *Task

func VeryHours

func VeryHours(interval uint64) *Task

func VeryMinutes

func VeryMinutes(interval uint64) *Task

func VerySeconds

func VerySeconds(interval uint64) *Task

func (*Task) Do

func (t *Task) Do(taskFun interface{}, params ...interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL