broker

package
v0.0.0-...-77d4856 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 0 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 struct {
	// contains filtered or unexported fields
}

func NewBroker

func NewBroker() *Broker

func (*Broker) Publish

func (b *Broker) Publish(msg Message)

func (*Broker) Start

func (b *Broker) Start()

func (*Broker) Stop

func (b *Broker) Stop()

func (*Broker) Subscribe

func (b *Broker) Subscribe() chan Message

func (*Broker) Unsubscribe

func (b *Broker) Unsubscribe(msgCh chan Message)

type Message

type Message interface {
	GetPayload() interface{}
	GetRequestor() string
	GetTopic() string
	Hash() string
	String() string
}

Jump to

Keyboard shortcuts

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