basejob

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchEnqueue

func BatchEnqueue(ctx context.Context, topic string, messages []string, args ...interface{}) (isOk bool, err error)

*

  • 消息批量入队 -- 原始message

func BatchEnqueueWithTask

func BatchEnqueueWithTask(ctx context.Context, topic string, tasks []work.Task, args ...interface{}) (isOk bool, err error)

*

  • 消息批量入队 -- Task数据结构

func Enqueue

func Enqueue(ctx context.Context, topic string, message string, args ...interface{}) (isOk bool, err error)

*

  • 消息入队 -- 原始message

func EnqueueWithTask

func EnqueueWithTask(ctx context.Context, topic string, task work.Task, args ...interface{}) (isOk bool, err error)

*

  • 消息入队 -- Task数据结构

func GetJob

func GetJob() *work.Job

func SetJob

func SetJob(job *work.Job)

func SetJobRegister

func SetJobRegister(r func(*work.Job))

Types

This section is empty.

Jump to

Keyboard shortcuts

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