Documentation ¶
Index ¶
- func SaveConfig(file string, config *Config) (err error)
- type Config
- func (this *Config) LocaleFull() (val string)
- func (this *Config) LocaleLoggedIn() (val string)
- func (this *Config) LocaleLostConn() (val string)
- func (this *Config) LocaleOffline() (val string)
- func (this *Config) LocaleShutdown() (val string)
- func (this *Config) Route(domain string) (val []string)
- func (this *Config) RouteIcons(domain string) (val []string)
- func (this *Config) RouteMotds(domain string) (val []string)
- func (this *Config) RouteSample(domain string) (val string)
- type ConfigConnect
- type ConfigConnectCredentials
- type ConfigProxy
- type ConfigProxyLocale
- type ConfigProxyRoute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
Types ¶
type Config ¶
type Config struct { Connect ConfigConnect `yaml:"connect"` Proxy ConfigProxy `yaml:"proxy"` }
func DefaultConfig ¶
func DefaultConfig() (config *Config)
func LoadConfig ¶
func (*Config) LocaleFull ¶
func (*Config) LocaleLoggedIn ¶
func (*Config) LocaleLostConn ¶
func (*Config) LocaleOffline ¶
func (*Config) LocaleShutdown ¶
func (*Config) RouteIcons ¶
func (*Config) RouteMotds ¶
func (*Config) RouteSample ¶
type ConfigConnect ¶
type ConfigConnect struct { Address string `yaml:"address"` Credentials ConfigConnectCredentials `yaml:"credentials"` }
type ConfigProxy ¶
type ConfigProxy struct { Bind string `yaml:"bind"` Routes []ConfigProxyRoute `yaml:"routes"` Locale ConfigProxyLocale `yaml:"locale"` Motd string `yaml:"motd"` MaxPlayers uint16 `yaml:"maxPlayers"` SyncMaxPlayers bool `yaml:"syncMaxPlayers"` Authenticate bool `yaml:"authenticate"` // contains filtered or unexported fields }
type ConfigProxyLocale ¶
type ConfigProxyRoute ¶
type ConfigProxyRoute struct { Domain string `yaml:"domain,omitempty"` Domains []string `yaml:"domains,omitempty"` Server string `yaml:"server,omitempty"` Servers []string `yaml:"servers,omitempty"` Motd string `yaml:"motd,omitempty"` Motds []string `yaml:"motds,omitempty"` Icon string `yaml:"icon,omitempty"` Icons []string `yaml:"icons,omitempty"` Sample string `yaml:"sample,omitempty"` }
Click to show internal directories.
Click to hide internal directories.