mq

package
v3.34.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllConsumer

type AllConsumer[T any] func([]Message[T])

type BasicConsumer

type BasicConsumer[T any] func(Message[T])

type MQ

type MQ[T any] interface {
	Publish(Message[T])
	Consume(BasicConsumer[T])
	ConsumeAll(AllConsumer[T])
	Clear()
	Len() int
}

func NewInMemoryMQ

func NewInMemoryMQ[T any]() MQ[T]

type Message

type Message[T any] struct {
	Content T
}

Jump to

Keyboard shortcuts

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