Documentation ¶
Index ¶
- func ConstructRequest(task *models.CrawlTask) (string, bool)
- type Scheduler
- type TaskQueue
- func (taskq *TaskQueue) Ack(ackid uint64) error
- func (taskq *TaskQueue) GetTask() (*models.CrawlTask, uint64, uint8, error)
- func (taskq *TaskQueue) Publish(name string, message models.MQMessage) error
- func (taskq *TaskQueue) Reject(ackid uint64) error
- func (taskq *TaskQueue) Resend(task *models.CrawlTask, priority uint8) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func NewScheduler(cookie *http.Cookie, storer *storage.BetterInMemoryStorage) *Scheduler
Click to show internal directories.
Click to hide internal directories.