database

package
v0.0.0-...-3226e9d Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func New

func New() (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.ConfigResponse) 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.ConfigResponse, 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