dispatch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatch

type Dispatch interface {
	Add(topic job.Topic, id job.ID, delay job.Delay, ttr job.TTR, body job.Body, override bool) (err error)
	Pop(topic job.Topic, blockTime time.Duration) (j *job.Job, err error)
	Finish(topic job.Topic, id job.ID) (err error)
	Delete(topic job.Topic, id job.ID) (err error)

	Run()
}

Dispatch interface for main stream of the program

func NewDispatch

func NewDispatch(logger log.Logger, new func() (bucket.Bucket, pool.Pool, queue.Queue, timer.Timer)) Dispatch

NewDispatch create a new dispatch to run the program

Jump to

Keyboard shortcuts

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