task

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskGenerator

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

func NewTaskGenerator

func NewTaskGenerator(mq models.MessageQueue, taskchaname string, retrys uint, tracer *tasktracer.TaskTracer) *TaskGenerator

func (*TaskGenerator) IllustDetailTask

func (gen *TaskGenerator) IllustDetailTask(id uint64) error

func (*TaskGenerator) RankInitTask

func (gen *TaskGenerator) RankInitTask(mode string, date string, content string) error

func (*TaskGenerator) SendTask

func (gen *TaskGenerator) SendTask(task models.CrawlTask) error

func (*TaskGenerator) UgoiraDetailTask

func (gen *TaskGenerator) UgoiraDetailTask(id uint64) error

func (*TaskGenerator) UserDetailTask

func (gen *TaskGenerator) UserDetailTask(id uint64) error

func (*TaskGenerator) UserIllustsTask

func (gen *TaskGenerator) UserIllustsTask(id uint64) error

Jump to

Keyboard shortcuts

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