Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Write ¶
func Write(filepath string, cfg VoiceServer) (err error)
Types ¶
type VoiceServer ¶
type VoiceServer struct { Host *string `env:"HOST" toml:"host" yaml:"host" json:"host"` Port *uint16 `env:"PORT" toml:"port" yaml:"port" json:"port"` PlayerHost *string `env:"PLAYER_HOST" toml:"playerHost" yaml:"playerHost" json:"playerHost"` PlayerPort *uint16 `env:"PLAYER_PORT" toml:"playerPort" yaml:"playerPort" json:"playerPort"` }
func Default ¶
func Default() VoiceServer
func ParseEnv ¶
func ParseEnv(prefix string) (VoiceServer, error)
Click to show internal directories.
Click to hide internal directories.