messagebus

package
v0.0.0-...-f2cd14d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2016 License: GPL-3.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

View Source
const DefaultUrl = nats.DefaultURL

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Url string
}

Config represents the configuration.

func NewConfig

func NewConfig(url string) *Config

NewConfig returns an instance of Config with defaults.

type MessageBus

type MessageBus struct {
	Config     *Config
	Connection *nats.Conn
}

func NewMessageBus

func NewMessageBus(config *Config) (*MessageBus, error)

Create new message bus wrapper, for this repo NATS is hardcoded. This module should serve as message routing across multiple protocols (RMQ, 0MQ, Tibrv etc)

func (*MessageBus) Close

func (m *MessageBus) Close()

Close underlying messaging bus driver

type Msg

type Msg nats.Msg

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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