Documentation ¶
Index ¶
- Constants
- type CommonResize
- type Cron
- func (s *Cron) AddFunc(name string, sch schedule.Interface, cmd ScheduleRun)
- func (s *Cron) AddJob(name string, sch schedule.Interface, cmd Job)
- func (s *Cron) AddScheduleJob(name string, cmd ScheduleJob)
- func (s *Cron) Entries() entries
- func (s *Cron) Entry(name string) *entry
- func (s *Cron) Job(name string) ScheduleJob
- func (s *Cron) Remove(name string)
- func (s *Cron) Resize()
- func (s *Cron) ResizeMap()
- func (s *Cron) Start()
- func (s *Cron) Stop()
- type Job
- type Resize
- type ScheduleJob
- type ScheduleRun
- type WrapJob
- type WrapScheduleJob
Constants ¶
View Source
const ( ScheduleEventAdd = 1 ScheduleEventChange = 2 ScheduleEventRemove = 3 ScheduleEventResize = 4 )
View Source
const (
ResizeOverTime = 3
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonResize ¶
type CommonResize struct { CheckTime uint8 TickerQueueIdleLimit int // contains filtered or unexported fields }
func NewCommonResize ¶
func NewCommonResize(gap uint8) *CommonResize
func (*CommonResize) Check ¶
func (r *CommonResize) Check(c, l int) bool
func (*CommonResize) NewCap ¶
func (r *CommonResize) NewCap(l int) int
type Cron ¶
type Cron struct {
// contains filtered or unexported fields
}
func (*Cron) AddScheduleJob ¶
func (s *Cron) AddScheduleJob(name string, cmd ScheduleJob)
func (*Cron) Job ¶
func (s *Cron) Job(name string) ScheduleJob
type ScheduleJob ¶
type ScheduleRun ¶
type WrapJob ¶
type WrapJob ScheduleRun
type WrapScheduleJob ¶
Click to show internal directories.
Click to hide internal directories.