Documentation ¶
Index ¶
- Constants
- type Component
- func (s *Component) CliFlags() []cli.Flag
- func (s *Component) Close() error
- func (s *Component) FreeCron(name string) error
- func (s *Component) Init(_ logger.Interface, _ *gsf.AppConfig, _ *cli.Context) error
- func (s *Component) NewCron(name string) (*Cron, error)
- func (s *Component) NewCronEx(name string, bSize int) (*Cron, error)
- func (s *Component) Run() error
- type ComponentConfig
- 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) Start()
- func (s *Cron) Stop()
- type Job
- type Resize
- type ResizeIterm
- type ScheduleJob
- type ScheduleRun
- type WrapJob
- type WrapScheduleJob
Constants ¶
View Source
const ( ScheduleEventAdd = 1 ScheduleEventChange = 2 ScheduleEventRemove = 3 ScheduleEventResize = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { Cfg ComponentConfig // contains filtered or unexported fields }
type ComponentConfig ¶ added in v0.3.0
type ComponentConfig struct { ResizeEnable int `json:"resize_enable" yaml:"resize_enable"` ChannelBuffer int `json:"channel_buffer" yaml:"channel_buffer"` ResizeDuration int `json:"resize_duration" yaml:"resize_duration"` ResizeThresholdRatio int `json:"resize_threshold_ratio" yaml:"resize_threshold_ratio"` ResizeThresholdLimit int `json:"resize_threshold_limit" yaml:"resize_threshold_limit"` ResizeThresholdTimes int `json:"resize_threshold_times" yaml:"resize_threshold_times"` }
type Cron ¶ added in v0.3.0
type Cron struct {
// contains filtered or unexported fields
}
func (*Cron) AddFunc ¶ added in v0.3.0
func (s *Cron) AddFunc(name string, sch schedule.Interface, cmd ScheduleRun)
func (*Cron) AddScheduleJob ¶ added in v0.3.0
func (s *Cron) AddScheduleJob(name string, cmd ScheduleJob)
func (*Cron) Job ¶ added in v0.3.0
func (s *Cron) Job(name string) ScheduleJob
type ResizeIterm ¶ added in v0.3.0
type ResizeIterm struct {
// contains filtered or unexported fields
}
func (*ResizeIterm) Check ¶ added in v0.3.0
func (r *ResizeIterm) Check(cap, len int) bool
func (*ResizeIterm) NewCap ¶ added in v0.3.0
func (r *ResizeIterm) NewCap(len int) int
type ScheduleJob ¶ added in v0.3.0
type ScheduleRun ¶ added in v0.3.0
type WrapJob ¶ added in v0.3.0
type WrapJob ScheduleRun
type WrapScheduleJob ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.