queue

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue interface {
	Push(*job.Job) error
	Pop(topic job.Topic) (job.NameVersion, error)
	PopWithBlockTime(topic job.Topic, blockTime time.Duration) (job.NameVersion, error)
}

Queue is a queue for ready jobs.

func New

func New(s store.Store, l log.Logger, name string) Queue

New a queue with a prefix, and storage for queue.

Jump to

Keyboard shortcuts

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