bridge

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	Bridger
	Name     string
	Account  string
	Protocol string
	Channels map[string]config.ChannelInfo
	Joined   map[string]bool
	Log      *log.Entry
	Config   *config.Config
	General  *config.Protocol
}

func New added in v0.7.0

func New(bridge *config.Bridge) *Bridge

func (*Bridge) GetBool added in v1.9.0

func (b *Bridge) GetBool(key string) bool

func (*Bridge) GetInt added in v1.9.0

func (b *Bridge) GetInt(key string) int

func (*Bridge) GetString added in v1.9.0

func (b *Bridge) GetString(key string) string

func (*Bridge) GetStringSlice added in v1.9.0

func (b *Bridge) GetStringSlice(key string) []string

func (*Bridge) GetStringSlice2D added in v1.9.0

func (b *Bridge) GetStringSlice2D(key string) [][]string

func (*Bridge) JoinChannels added in v0.9.3

func (b *Bridge) JoinChannels() error

type Bridger added in v0.6.1

type Bridger interface {
	Send(msg config.Message) (string, error)
	Connect() error
	JoinChannel(channel config.ChannelInfo) error
	Disconnect() error
}

type Config

type Config struct {
	//	General *config.Protocol
	Remote chan config.Message
	Log    *log.Entry
	*Bridge
}

type Factory added in v1.9.0

type Factory func(*Config) Bridger

Factory is the factory function to create a bridge

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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