bridge

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2018 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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