Documentation ¶
Index ¶
- func Get(key string) interface{}
- func GetBool(key string) bool
- func GetCredentials() common.Credentials
- func GetHealthCheckConfig() common.HealthCheckConfig
- func GetInt(key string) int
- func GetNodes() map[string]common.Node
- func GetPoolCapacity() int
- func GetString(key string) string
- func GetStringMap(key string) map[string]interface{}
- func GetStringMapString(key string) map[string]string
- func GetStringSlice(key string) []string
- func IsSet(key string) bool
- func ReadConfig()
- func Set(key string, value interface{})
- func SetConfigPath(path string)
- type Adapter
- type AdminConfig
- type Config
- type PoolConfig
- type ProxyConfig
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCredentials ¶
func GetCredentials() common.Credentials
func GetHealthCheckConfig ¶
func GetHealthCheckConfig() common.HealthCheckConfig
func GetPoolCapacity ¶
func GetPoolCapacity() int
func GetStringMap ¶
func GetStringMapString ¶
func GetStringSlice ¶
func ReadConfig ¶
func ReadConfig()
func SetConfigPath ¶
func SetConfigPath(path string)
Types ¶
type AdminConfig ¶
type AdminConfig struct {
HostPort string `mapstructure:"hostport"`
}
func GetAdminConfig ¶
func GetAdminConfig() AdminConfig
type Config ¶
type Config struct { //Nodes map[string]common.Node `mapstructure:"nodes"` Server ServerConfig `mapstructure:"server"` Pool PoolConfig `mapstructure:"pool"` Nodes map[string]common.Node `mapstructure:"nodes"` Credentials common.Credentials `mapstructure:"credentials"` HealthCheck common.HealthCheckConfig `mapstructure:"healthcheck"` }
type PoolConfig ¶
type PoolConfig struct {
Capacity int `mapstructure:"capacity"`
}
type ProxyConfig ¶
type ProxyConfig struct {
HostPort string `mapstructure:"hostport"`
}
func GetProxyConfig ¶
func GetProxyConfig() ProxyConfig
type ServerConfig ¶
type ServerConfig struct { Admin AdminConfig `mapstructure:"admin"` Proxy ProxyConfig `mapstructure:"proxy"` }
Click to show internal directories.
Click to hide internal directories.