queue

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 6 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 message

func Enqueue added in v0.4.0

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

Create egress and dead-letter queue channels for the category

func Must added in v0.9.0

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

func TypeOf added in v0.15.2

func TypeOf[T any]() string

normalized type name

Types

type Enqueuer added in v0.13.3

type Enqueuer[T any] interface {
	Put(T) error
	Enq(string, T) error
}

Enqueue message to the broker synchronously, blocking the routine until message is accepted by the broker.

func New

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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