domains

package
v0.0.0-...-36a2cef Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const EmptyQueue = -1

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

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

func NewBroker

func NewBroker(lenOfMessageQueue int, defaultTopic string) *Broker

func (*Broker) CreateTopic

func (b *Broker) CreateTopic(topic string) error

func (*Broker) DeleteTopic

func (b *Broker) DeleteTopic(topicName string)

func (*Broker) PerformanceStat

func (b *Broker) PerformanceStat() string

func (*Broker) Producer

func (b *Broker) Producer(topicName string, message []byte) error

func (*Broker) Subscribe

func (b *Broker) Subscribe(url string, topic string) error

func (*Broker) Unsubscribe

func (b *Broker) Unsubscribe(url string, topic string)

Jump to

Keyboard shortcuts

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