config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2016 License: Apache-2.0 Imports: 3 Imported by: 132

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IRC struct {
		UseTLS           bool
		UseSASL          bool
		SkipTLSVerify    bool
		Server           string
		Nick             string
		Password         string
		Channel          string
		NickServNick     string
		NickServPassword string
		RemoteNickFormat string
		IgnoreNicks      string
		Enable           bool
	}
	Gitter struct {
		Enable           bool
		IgnoreNicks      string
		Nick             string
		RemoteNickFormat string
		Token            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
		Enable                 bool
	}
	Slack struct {
		BindAddress            string
		Enable                 bool
		IconURL                string
		IgnoreNicks            string
		NickFormatter          string
		NicksPerRow            int
		PrefixMessagesWithNick bool
		RemoteNickFormat       string
		Token                  string
		URL                    string
		UseAPI                 bool
	}
	Xmpp struct {
		IgnoreNicks      string
		Jid              string
		Password         string
		Server           string
		Muc              string
		Nick             string
		RemoteNickFormat string
		Enable           bool
	}
	Channel map[string]*struct {
		IRC        string
		Mattermost string
		Xmpp       string
		Gitter     string
		Slack      string
	}
	General struct {
		GiphyAPIKey string
		Xmpp        bool
		Irc         bool
		Mattermost  bool
		Plus        bool
	}
}

func NewConfig

func NewConfig(cfgfile string) *Config

type Message

type Message struct {
	Text     string
	Channel  string
	Username string
	Origin   string
}

Jump to

Keyboard shortcuts

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