bridge

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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
		Port              int
		Nick              string
		Password          string
		Channel           string
		UseSlackCircumfix bool
		NickServNick      string
		NickServPassword  string
		RemoteNickFormat  string
		IgnoreNicks       string
	}
	Mattermost struct {
		URL                    string
		Port                   int
		ShowJoinPart           bool
		Token                  string
		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
	}
	Token map[string]*struct {
		IRCChannel string
		MMChannel  string
	}
	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