Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Accounts []*AccountStruct
Functions ¶
func ReadConfig ¶
func ReadConfig()
func SetConfigPath ¶
func SetConfigPath(path string)
Types ¶
type AccountStruct ¶
type AccountStruct struct { Username string `yaml:"username" mapstructure:"username"` Password string `yaml:"password" mapstructure:"password"` BindAddress string `yaml:"bind_address" mapstructure:"bind_address"` OutAddress string `yaml:"out_address" mapstructure:"out_address"` UDPBindIP string `yaml:"udp_bind_ip" mapstructure:"udp_bind_ip"` Whitelist []string `yaml:"whitelist" mapstructure:"whitelist"` TCPTimeout int `yaml:"tcp_timeout" mapstructure:"tcp_timeout"` UDPTimeout int `yaml:"udp_timeout" mapstructure:"udp_timeout"` WhitelistMap WhitelistMapType }
type DefaultHandle ¶
type DefaultHandle struct {
// contains filtered or unexported fields
}
type WhitelistMapType ¶
Click to show internal directories.
Click to hide internal directories.