Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetConfigPath ¶
func SetConfigPath(path string)
Types ¶
type ClientConfig ¶
type ClientConfig struct { Cert string `mapstructure:"cert,omitempty"` Key string `mapstructure:"key,omitempty"` CA string `mapstructure:"ca,omitempty"` SkipVerifyCA bool `mapstructure:"skipverify,omitempty"` AllowUnencrypted bool `mapstructure:"allowunencrypted,omitempty"` TrySSL bool `mapstructure:"tryssl"` }
type Config ¶
type Config struct { Bind string `mapstructure:"bind"` Server ServerConfig `mapstructure:"server"` Client ClientConfig `mapstructure:"client"` HostRegex string `mapstructure:"hostregex"` RedisServer string `mapstructure:"redisserver"` }
func ReadConfig ¶
Click to show internal directories.
Click to hide internal directories.