events

package
v0.11.2 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: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dequeue

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

Dequeue ...

func Enqueue

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

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

Types

type Queue added in v0.9.0

type Queue[T any, E swarm.EventKind[T]] interface {
	Enqueue(*E) error
}

func New added in v0.9.0

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

Jump to

Keyboard shortcuts

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