support

package
v1.1.20 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 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 GetQueueName

func GetQueueName(connection, queue string) string

func GetServer

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