config

package
v0.0.0-...-fd61b07 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 7 Imported by: 0

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)

Jump to

Keyboard shortcuts

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