Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrawlTaskSorter ¶
type CrawlTaskSorter struct { Now int64 // contains filtered or unexported fields }
func (*CrawlTaskSorter) Len ¶
func (this *CrawlTaskSorter) Len() int
func (*CrawlTaskSorter) Less ¶
func (this *CrawlTaskSorter) Less(i, j int) bool
func (*CrawlTaskSorter) Sort ¶
func (this *CrawlTaskSorter) Sort(tasks []types.CrawlTask, by CrawlTaskLessFunc)
func (*CrawlTaskSorter) Swap ¶
func (this *CrawlTaskSorter) Swap(i, j int)
type CronJob ¶
type CronJob struct {
// contains filtered or unexported fields
}
func InitCronJob ¶
func InitCronJob(f CronJobFunc, args []interface{}, period time.Duration) *CronJob
type CronJobFunc ¶
type CronJobFunc func(...interface{})
type HttpClient ¶
type HttpClient struct { }
func (*HttpClient) EncodeQuery ¶
func (this *HttpClient) EncodeQuery(params map[string]string) string
Click to show internal directories.
Click to hide internal directories.