bus

package
v0.0.0-...-6edac6f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

type Bus interface {
	strana.EventHandler
	Mount(strana.Module) error
	Start() error
	Shutdown() error
}

func New

func New(conf config.Bus) (Bus, error)

type Option

type Option func(*Options)

func Embedded

func Embedded(b bool) Option

type Options

type Options struct {
	Embedded bool
}

func NewOptions

func NewOptions(opts ...Option) Options

type Route

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

func NewRoute

func NewRoute(src, sink message.Path, bus Bus, hndlr strana.EventHandlerFunc) (*Route, error)

func (*Route) Close

func (r *Route) Close() error

Directories

Path Synopsis
nsq

Jump to

Keyboard shortcuts

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