Categorygithub.com/hellosekai/bull-golang
modulepackage
1.0.3
Repository: https://github.com/hellosekai/bull-golang.git
Documentation: pkg.go.dev

# README

bull-golang

bull-js golang 版本

使用方法

样例见./example/example.go

导入包后使用定义结构体添加bull.QueueIface,该接口定义了Add方法 接受BullQueueOption将队列初始化,Option包括keyPrefix与QueueName与redis地址与登录密码

Add方法接受一个json格式的JobData与一系列提供的初始化方法 初始化方法是可选的,当前支持 WithPriorityOp(priority int) WithRemoveOnCompleteOp(flag bool) WithRemoveOnFailOp(flag bool) WithAttemptsOp(times int) WithDelayOp(delayTime int)

# Packages

* * @Description: * @FilePath: /bull-golang/example/example.go * @Author: liyibing [email protected] * @Date: 2023-07-27 18:04:13 */.

# Functions

No description provided by the author
* * @description: set attemp times and 1 is default * @param {int} times * @return {*} */.
* * @description: set delay time and 0 is default * @param {int} delayTime * @return {*} */.
* * @description: set priority, 0 is highest and default value * @param {int} priority * @return {*} */.
* * @description: false is default * @param {bool} flag * @return {*} */.
* * @description: false is default * @param {bool} flag * @return {*} */.
* * @description: * @param {int64} timeStamp by time.Now().UnixMilli() * @return {*} */.

# Constants

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
这个结构也是需要被序列化的.
No description provided by the author

# Interfaces

No description provided by the author
这边应该要求传入json数据,需要在使用接口直接保证.