Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleEngine ¶
type ScheduleEngine struct { WorkCount int //为执行任务的数量,可以灵活地去配置。 Fetcher collect.Fetcher Logger *zap.Logger Seeds []*collect.Request // contains filtered or unexported fields }
func (*ScheduleEngine) CreateWork ¶
func (s *ScheduleEngine) CreateWork()
func (*ScheduleEngine) HandleResult ¶
func (s *ScheduleEngine) HandleResult()
func (*ScheduleEngine) Run ¶
func (s *ScheduleEngine) Run()
func (*ScheduleEngine) Schedule ¶
func (s *ScheduleEngine) Schedule()
Click to show internal directories.
Click to hide internal directories.