bridge

package
v0.5.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Legacy = "legacy"

Variables

This section is empty.

Functions

func IsMarkup

func IsMarkup(message string) bool

Types

type Bridge

type Bridge struct {
	MMhook
	MMapi
	MMirc
	*Config
	// contains filtered or unexported fields
}

func NewBridge

func NewBridge(name string, config *Config, kind string) *Bridge

func (*Bridge) Send

func (b *Bridge) Send(nick string, message string, channel string) error

func (*Bridge) SendType

func (b *Bridge) SendType(nick string, message string, channel string, mtype string) error

type Config

type Config struct {
	IRC struct {
		UseTLS           bool
		SkipTLSVerify    bool
		Server           string
		Nick             string
		Password         string
		Channel          string
		NickServNick     string
		NickServPassword string
		RemoteNickFormat string
		IgnoreNicks      string
	}
	Mattermost struct {
		URL                    string
		ShowJoinPart           bool
		IconURL                string
		SkipTLSVerify          bool
		BindAddress            string
		Channel                string
		PrefixMessagesWithNick bool
		NicksPerRow            int
		NickFormatter          string
		Server                 string
		Team                   string
		Login                  string
		Password               string
		RemoteNickFormat       *string
		IgnoreNicks            string
		NoTLS                  bool
	}
	Channel map[string]*struct {
		IRC        string
		Mattermost string
	}
	General struct {
		GiphyAPIKey string
	}
}

func NewConfig

func NewConfig(cfgfile string) *Config

type FancyLog

type FancyLog struct {
	// contains filtered or unexported fields
}

type MMMessage

type MMMessage struct {
	Text     string
	Channel  string
	Username string
}

type MMapi

type MMapi struct {
	// contains filtered or unexported fields
}

type MMhook

type MMhook struct {
	// contains filtered or unexported fields
}

type Bridge struct {

type MMirc

type MMirc struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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