Documentation
¶
Overview ¶
Package scheduler helps to schedule the task
Package scheduler helps to schedule the task ¶
Package scheduler helps to schedule the task
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoCron ¶
type GoCron struct {
// contains filtered or unexported fields
}
GoCron is a wrapper of gocron
type StaticScheduler ¶
type StaticScheduler struct {
// contains filtered or unexported fields
}
StaticScheduler definition
func NewStaticScheduler ¶
func NewStaticScheduler() *StaticScheduler
NewStaticScheduler to create new static scheduler
func (*StaticScheduler) AddFunc ¶
func (ss *StaticScheduler) AddFunc(spec string, cmd func()) error
AddFunc to add new function to cron scheduler
func (*StaticScheduler) Start ¶
func (ss *StaticScheduler) Start() error
Start to start the cron scheduler
Click to show internal directories.
Click to hide internal directories.