Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CrontabPool ¶
type CrontabPool struct {
*cron.Cron
TaskPool map[string]*Task
Lock sync.Mutex
Register chan *Task
Update chan *Task
UnRegister chan string
Close chan int
TaskCount int
}
func NewCrontabPool ¶
func NewCrontabPool() *CrontabPool
func (*CrontabPool) Run ¶
func (c *CrontabPool) Run()
type PeriodicJob ¶
type PeriodicJob struct {
RequestClient rexRequest.RequestClient
Data PeriodicJobData
// contains filtered or unexported fields
}
func (*PeriodicJob) Run ¶
func (j *PeriodicJob) Run()
type PeriodicJobData ¶
type PeriodicJobData struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.