Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = func() Config { var cfg Config json.NewDecoder(strings.NewReader(os.Getenv("cfg"))).Decode(&cfg) def := Config{ AudioDelay: Dur{D: 250 * time.Millisecond}, AudioLimit: Dur{D: 3 * time.Second}, AudioLimitTTS: Dur{D: 3 * time.Second}, TextLimit: 64, Netcon: ConnInfo{ Host: "127.0.0.1", Port: 31173, }, TnetPort: 31173, FirstVoice: "jenny", RateLimit: Dur{D: 5 * time.Second}, ServerListMaxAge: Dur{1 * time.Hour}, ServerInfoMaxAge: Dur{1 * time.Minute}, } cfg, _ = def.Merge(cfg) return cfg }()
View Source
var DefaultPaths = MustNewPaths("", "")
Functions ¶
Types ¶
type Config ¶
type Config struct {
Netcon ConnInfo `json:"netcon"`
Rcon ConnInfo `json:"rcon"`
AudioDelay Dur `json:"audioDelay"`
AudioLimit Dur `json:"audioLimit"`
AudioLimitTTS Dur `json:"audioLimitTTS"`
TextLimit int `json:"textLimit"`
IncludeUsernames map[string]bool `json:"includeUsernames"`
ExcludeUsernames map[string]bool `json:"excludeUsernames"`
Hosts map[string]bool `json:"hosts"`
FirstVoice string `json:"firstVoice"`
LogLevel string `json:"logLevel"`
RateLimit Dur `json:"rateLimit"`
ServerListMaxAge Dur `json:"serverListMaxAge"`
ServerInfoMaxAge Dur `json:"serverInfoMaxAge"`
Minimized *bool `json:"minimized"`
Demo *bool `json:"demo"`
// deprecated: use netcon
TnetPort int `json:"tnetPort"`
}
func (Config) StartMinimized ¶
type ConnInfo ¶
Click to show internal directories.
Click to hide internal directories.