broker

package
v0.0.0-...-8fb4ce3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWatcherStopped = errors.New("watcher stopped")

Functions

func New

func New(service micro.Service) (broadcast.Broadcast, error)

Types

type Broker

type Broker struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Broker) Send

func (b *Broker) Send(namespace *config.Namespace) error

func (*Broker) Watch

func (b *Broker) Watch() broadcast.Watcher

type Watcher

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

func (*Watcher) Next

func (w *Watcher) Next() (*config.Namespace, error)

func (*Watcher) Stop

func (w *Watcher) Stop() error

Jump to

Keyboard shortcuts

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