usecase

package
v0.0.0-...-32727c2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrQueueExists = errors.New("message queue already exists")
	ErrNoQueue     = errors.New("queue doesn't exist")
)

Functions

This section is empty.

Types

type Bus

type Bus struct {
	// contains filtered or unexported fields
}

func NewBus

func NewBus(logger *slog.Logger) Bus

func (Bus) PostMessage

func (uc Bus) PostMessage(queueName string, msg domain.Message) error

PostMessage размещает сообщение в указанной очереди.

func (Bus) RegisterQueue

func (uc Bus) RegisterQueue(name string, maxSize, maxConsumers int) error

RegisterQueue создает новую [Queue] с указанными параметрами.

func (Bus) Subscribe

func (uc Bus) Subscribe(queueName, clientURI string) error

Subscribe подписывает клиента на события очереди.

Jump to

Keyboard shortcuts

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