Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ConfigDir string Server ServerConfig `koanf:"server"` Core CoreConfig `koanf:"core"` Proxy ProxyConfig `koanf:"proxy"` }
func LoadOrCreateConfig ¶
func LoadOrCreateConfig() *Config
type CoreConfig ¶
type CoreConfig struct { EnableColors bool `koanf:"enableColors"` BufferSize int `koanf:"bufferSize"` BufferReplaySize int `koanf:"bufferReplaySize"` CommandPrefix string `koanf:"commandPrefix"` CommandSeparator string `koanf:"commandSeparator"` IdleTime int `koanf:"idleTime"` DisablePluginsOnIdle bool `koanf:"disablePluginsOnIdle"` DisablePluginsOnIdleWhitelist []string `koanf:"disablePluginsOnIdleWhitelist"` }
type ProxyConfig ¶
type ProxyConfig struct{}
type SSLServerConfig ¶
type ServerConfig ¶
type ServerConfig struct { Telnet *TelnetServerConfig `koanf:"telnet"` Websocket *WebsocketServerConfig `koanf:"websocket"` SSL *SSLServerConfig `koanf:"ssl"` }
type TelnetServerConfig ¶
type WebsocketServerConfig ¶
type WebsocketServerConfig struct {
Port int `koanf:"port"`
}
Click to show internal directories.
Click to hide internal directories.