broker

package
v0.0.0-...-abc9c84 Latest Latest
Warning

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

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

func New

func New(logger *zerolog.Logger) *Broker

func (*Broker) Publish

func (b *Broker) Publish(msg interface{})

func (*Broker) Start

func (b *Broker) Start()

func (*Broker) Subscribe

func (b *Broker) Subscribe(name string) chan interface{}

func (*Broker) Unsubscribe

func (b *Broker) Unsubscribe(msgCh chan interface{})

Jump to

Keyboard shortcuts

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