configure

package
v0.0.0-...-727fcc1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(cfg *Config) error

Types

type Config

type Config struct {
	User struct {
		Nick     string `yaml:"nick"`
		User     string `yaml:"user"`
		Identify bool   `yaml:"identify"`
		Password string `yaml:"password"`
	} `yaml:"user"`
	Server struct {
		Host           string `yaml:"host"`
		Port           string `yaml:"port"`
		UseTls         bool   `yaml:"use_tls"`
		ServerAuth     bool   `yaml:"server_auth"`
		ServerPassword string `yaml:"server_pass"`
	} `yaml:"server"`
	Channel struct {
		ChannelName    string `yaml:"channel_name"`
		Greeting       string `yaml:"greeting"`
		CmdPrefix      string `yaml:"cmd_prefix"`
		AutoJoinOnKick bool   `yaml:"auto_join_on_kick"`
	} `yaml:"channel"`
	Connection struct {
		VerboseCallbackHandler bool `yaml:"verbose_callback_handler"`
		Debug                  bool `yaml:"debug"`
	} `yaml:"connection"`
	Admin struct {
		Owner       string `yaml:"owner"`
		DenyMessage string `yaml:"deny_message"`
	} `yaml:"admin"`
	Http struct {
		ResponseSizeLimit int64  `yaml:"response_size_limit"`
		Timeout           int64  `yaml:"timeout"`
		UserAgent         string `yaml:"user_agent"`
	} `yaml:"http"`
	Ignore struct {
		UsersToIgnore []string `yaml:"users_to_ignore"`
	} `yaml:"ignore"`
	Modules map[string]map[string]string `yaml:"modules"`
}

Jump to

Keyboard shortcuts

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