queue

package
v0.0.0-...-3c3d79d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

README

go的任务队列

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueue

func NewQueue(f Call, channelName string) *queue

Types

type Call

type Call func(j *Job) (err error)

type Job

type Job struct {
	ChannelName string
	Retry       int         // 已经尝试次数
	Value       interface{} // 任务参数
}

Directories

Path Synopsis
drive

Jump to

Keyboard shortcuts

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