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 ¶ added in v0.2.1
type CommonResize struct { CheckTime uint8 TickerQueueIdleLimit int // contains filtered or unexported fields }
func NewCommonResize ¶ added in v0.2.1
func NewCommonResize(gap uint8) *CommonResize
func (*CommonResize) Check ¶ added in v0.2.1
func (r *CommonResize) Check(c, l int) bool
func (*CommonResize) NewCap ¶ added in v0.2.1
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.