queue

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dequeue added in v0.4.0

func Dequeue[T any](q swarm.Broker, category ...string) (<-chan *swarm.Msg[T], chan<- *swarm.Msg[T])

Dequeue ...

func Enqueue added in v0.4.0

func Enqueue[T any](q swarm.Broker, category ...string) (chan<- T, <-chan T)

Enqueue creates pair of channels to send messages and dead-letter queue

func Must added in v0.9.0

func Must(broker swarm.Broker, err error) swarm.Broker

Types

type Queue

type Queue[T any] interface {
	Enqueue(T) error
}

func New

func New[T any](q swarm.Broker, category ...string) Queue[T]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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