worker

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelloWorldTaskName          = "HelloWorldTask"
	DeleteAppShareImageTaskName = "DeleteAppShareImageTask"
)

方法名

Variables

View Source
var (
	AsyncTaskCenter *machinery.Server
)

Functions

func HelloWorld

func HelloWorld() error

HelloWorld 测试异步任务

func NewAsyncTaskWorker

func NewAsyncTaskWorker(concurrency int) *machinery.Worker

func NewTaskCenter

func NewTaskCenter() (*machinery.Server, error)

GID_TEST,test_topic,Your Access Key,Your Secret Key,ALIYUN

func SendHelloWorldTask

func SendHelloWorldTask(ctx context.Context)

SendHelloWorldTask 调用点调用此异步任务函数

Types

This section is empty.

Jump to

Keyboard shortcuts

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