bytes

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: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dequeue

func Dequeue(q swarm.Broker, cat string) (<-chan *swarm.Msg[[]byte], chan<- *swarm.Msg[[]byte])

Dequeue ...

func Enqueue

func Enqueue(q swarm.Broker, cat string) (chan<- []byte, <-chan []byte)

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

Types

type Queue added in v0.9.0

type Queue interface {
	Enqueue([]byte) error
}

func New added in v0.9.0

func New(q swarm.Broker, category string) Queue

Jump to

Keyboard shortcuts

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