config

package
v0.0.0-...-d6825e6 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 9 Imported by: 0

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 SSLServerConfig struct {
	Host         string `koanf:"host"`
	Port         int    `koanf:"port"`
	CertFile     string `koanf:"certFile"`
	KeyFile      string `koanf:"keyFile"`
	GeneratePair bool   `koanf:"generatePair"`
}

type ServerConfig

type ServerConfig struct {
	Telnet    *TelnetServerConfig    `koanf:"telnet"`
	Websocket *WebsocketServerConfig `koanf:"websocket"`
	SSL       *SSLServerConfig       `koanf:"ssl"`
}

type TelnetServerConfig

type TelnetServerConfig struct {
	Host string `koanf:"host"`
	Port int    `koanf:"port"`
}

type WebsocketServerConfig

type WebsocketServerConfig struct {
	Port int `koanf:"port"`
}

Jump to

Keyboard shortcuts

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