Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ListenAddr string `json:"listen_addr" env:"WS_LISTEN_ADDR,notEmpty" envDefault:"0.0.0.0:16779"`
MaxConn int `json:"max_conn" env:"WS_MAX_CONN" envDefault:"100"`
IDWhitelist []string `json:"id_whitelist" envPrefix:"WS_ID_WHITELIST"`
SecretInfo []SecretInfo `json:"secret_info" envPrefix:"WS_SECRET"`
EnableAuth bool `json:"enable_auth" env:"WS_ENABLE_AUTH" envDefault:"false"`
LogLevel string `json:"log_level" env:"WS_LOG_LEVEL" envDefault:"INFO"`
}
func ParseConfig ¶
func ParseConfig() *Config
type SecretInfo ¶
Click to show internal directories.
Click to hide internal directories.