bridge

package
v1.17.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 111

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	Bridger
	*sync.RWMutex

	Name           string
	Account        string
	Protocol       string
	Channels       map[string]config.ChannelInfo
	Joined         map[string]bool
	ChannelMembers *config.ChannelMembers
	Log            *logrus.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

func (*Bridge) SetChannelMembers added in v1.13.0

func (b *Bridge) SetChannelMembers(newMembers *config.ChannelMembers)

SetChannelMembers sets the newMembers to the bridge ChannelMembers

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 {
	*Bridge

	Remote chan config.Message
}

type Factory added in v1.9.0

type Factory func(*Config) Bridger

Factory is the factory function to create a bridge

Jump to

Keyboard shortcuts

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