task

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 6 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(ctx context.Context, id uint64) error

func (*TaskGenerator) RankInitTask

func (gen *TaskGenerator) RankInitTask(ctx context.Context, 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(ctx context.Context, id uint64) error

func (*TaskGenerator) UserDetailTask

func (gen *TaskGenerator) UserDetailTask(ctx context.Context, id uint64) error

func (*TaskGenerator) UserIllustsTask

func (gen *TaskGenerator) UserIllustsTask(ctx context.Context, id uint64) error

Jump to

Keyboard shortcuts

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