Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronJobTimerHeap ¶
type CronJobTimerHeap []*SCronJob
func (CronJobTimerHeap) Len ¶
func (cjth CronJobTimerHeap) Len() int
func (CronJobTimerHeap) Less ¶
func (cjth CronJobTimerHeap) Less(i, j int) bool
func (*CronJobTimerHeap) Pop ¶
func (cjth *CronJobTimerHeap) Pop() interface{}
func (*CronJobTimerHeap) Push ¶
func (cjth *CronJobTimerHeap) Push(x interface{})
func (CronJobTimerHeap) Swap ¶
func (cjth CronJobTimerHeap) Swap(i, j int)
type SCronJob ¶
type SCronJob struct { Name string Timer ICronTimer Next time.Time // contains filtered or unexported fields }
type SCronJobManager ¶
type SCronJobManager struct {
// contains filtered or unexported fields
}
func GetCronJobManager ¶
func GetCronJobManager() *SCronJobManager
func (*SCronJobManager) AddJob1 ¶
func (self *SCronJobManager) AddJob1(name string, interval time.Duration, jobFunc func(ctx context.Context, userCred mcclient.TokenCredential))
func (*SCronJobManager) AddJob2 ¶
func (self *SCronJobManager) AddJob2(name string, day, hour, min, sec int, jobFunc func(ctx context.Context, userCred mcclient.TokenCredential))
func (*SCronJobManager) Next ¶
func (self *SCronJobManager) Next(now time.Time)
func (*SCronJobManager) Start ¶
func (self *SCronJobManager) Start()
func (*SCronJobManager) Stop ¶
func (self *SCronJobManager) Stop()
Click to show internal directories.
Click to hide internal directories.