broker

package
v0.0.0-...-1762b78 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	// Publish sends a payload to a message broker.
	Publish(subject string, payload interface{}) error
	// Subscribe consumes messages from a message broker.
	Subscribe(subject string, handler stan.MsgHandler, subscriberName string) (io.Closer, error)
}

Broker is an interface that wraps queues and message broker.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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