dispatcher

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	// contains filtered or unexported fields
}

func NewDispatcher

func NewDispatcher(store adapter.Store, statsCollector *stats.Collector) *Dispatcher

func (*Dispatcher) Dispatch

func (ds *Dispatcher) Dispatch(queueName string, job job.Job) error

func (*Dispatcher) DispatchBatch

func (ds *Dispatcher) DispatchBatch(queueName string, jobs []job.Job) error

DispatchBatch adds multiple jobs to the queue in a single call.

func (*Dispatcher) DispatchBatchWithDelay

func (ds *Dispatcher) DispatchBatchWithDelay(queueName string, jobs []job.Job, delay time.Duration) error

DispatchBatchWithDelay adds multiple jobs to the store for the given queue after a delay.

func (*Dispatcher) DispatchWithDelay

func (ds *Dispatcher) DispatchWithDelay(queueName string, job job.Job, delay time.Duration) error

DispatchWithDelay adds a job to the store for the given queue after a delay.

Jump to

Keyboard shortcuts

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