config

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *logrus.Entry

Functions

This section is empty.

Types

type Config

type Config struct {
	Slack              Settings
	Mattermost         Settings
	Debug              bool
	Bind               string
	BindInterface      string
	BindPort           int
	TLSBind            string
	TLSDir             string
	Insecure           bool
	SkipTLSVerify      bool
	DefaultServer      string
	DefaultTeam        string
	Restrict           string
	JoinExclude        []string
	JoinInclude        []string
	PartFake           bool
	PasteBufferTimeout int
}

func LoadConfig

func LoadConfig(cfgfile string, defaultcfg Config) *Config

func Migrate added in v0.18.4

func Migrate(defaultcfg Config) *Config

type Settings added in v0.17.0

type Settings struct {
	BlackListUser  []string
	DefaultServer  string
	DefaultTeam    string
	Insecure       bool
	JoinExclude    []string
	JoinInclude    []string
	JoinMpImOnTalk bool
	PartFake       bool
	Restrict       []string
	SkipTLSVerify  bool
	UseDisplayName bool
	PrefixMainTeam bool
}

Jump to

Keyboard shortcuts

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