source

package
v1.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataQueue

type DataQueue struct {
	// contains filtered or unexported fields
}

func NewDataQueue

func NewDataQueue(mq models.MessageQueue, channame string) *DataQueue

func (*DataQueue) Ack

func (dataq *DataQueue) Ack(ackid uint64) error

func (*DataQueue) GetData

func (dataq *DataQueue) GetData() (*models.CrawlResponse, uint64, uint8, error)

func (*DataQueue) Publish

func (dataq *DataQueue) Publish(name string, message models.MQMessage) error

func (*DataQueue) Reject

func (dataq *DataQueue) Reject(ackid uint64) error

type Task

type Task struct {
	// contains filtered or unexported fields
}

func NewTaskGenerator

func NewTaskGenerator(mq models.MessageQueue, taskchaname string) *Task

func (*Task) SendTask

func (gen *Task) SendTask(task models.CrawlTask, priority uint8) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL