gateway

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

type Gateway struct {
	*config.Config
	MyConfig        *config.Gateway
	Bridges         map[string]*bridge.Bridge
	ChannelsOut     map[string][]string
	ChannelsIn      map[string][]string
	ChannelOptions  map[string]config.ChannelOptions
	Name            string
	Message         chan config.Message
	DestChannelFunc func(msg *config.Message, dest string) []string
}

func New

func New(cfg *config.Config, gateway *config.Gateway) *Gateway

func (*Gateway) AddBridge added in v0.9.0

func (gw *Gateway) AddBridge(cfg *config.Bridge) error

func (*Gateway) Start added in v0.9.0

func (gw *Gateway) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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