bytes

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 4 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 bytes

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 Enqueuer

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

func New

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

Jump to

Keyboard shortcuts

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