support

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DriverRedis string = "redis"
View Source
const DriverSync string = "sync"

Variables

This section is empty.

Functions

func GetServer added in v0.6.0

func GetServer(connection string, queue string) (*machinery.Server, error)

Types

type Task

type Task struct {
	Job   queue.Job
	Jobs  []queue.Jobs
	Chain bool
	Args  []queue.Arg
	// contains filtered or unexported fields
}

func (*Task) Dispatch

func (receiver *Task) Dispatch() error

func (*Task) DispatchSync

func (receiver *Task) DispatchSync() error

func (*Task) OnConnection

func (receiver *Task) OnConnection(connection string) queue.Task

func (*Task) OnQueue

func (receiver *Task) OnQueue(queue string) queue.Task

type Worker

type Worker struct {
	// Specify connection
	Connection string
	// Specify queue
	Queue string
	// Concurrent num
	Concurrent int
}

func (*Worker) Run

func (receiver *Worker) Run() error

Jump to

Keyboard shortcuts

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