Documentation
¶
Index ¶
- func Get(key string) interface{}
- func GetBool(key string) bool
- func GetConnectionTTL() int
- func GetCredentials(role string) common.Credentials
- func GetDefaultBackend() string
- func GetForceRouting() bool
- func GetHealthCheckConfig() common.HealthCheckConfig
- func GetInt(key string) int
- func GetNodes() map[string]common.Node
- func GetPickSessionLevel() string
- func GetPoolCapacity() int
- func GetPoolEnable() bool
- func GetQueryRoutes() map[string]common.QueryRoute
- 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 HasClient(userName string, authMethod int32) bool
- 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 GetConnectionTTL ¶
func GetConnectionTTL() int
func GetCredentials ¶
func GetCredentials(role string) common.Credentials
func GetDefaultBackend ¶
func GetDefaultBackend() string
func GetForceRouting ¶
func GetForceRouting() bool
func GetHealthCheckConfig ¶
func GetHealthCheckConfig() common.HealthCheckConfig
func GetPickSessionLevel ¶
func GetPickSessionLevel() string
func GetPoolCapacity ¶
func GetPoolCapacity() int
func GetPoolEnable ¶
func GetPoolEnable() bool
func GetQueryRoutes ¶
func GetQueryRoutes() map[string]common.QueryRoute
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 map[string]common.Credentials `mapstructure:"credentials"` HealthCheck common.HealthCheckConfig `mapstructure:"healthcheck"` Routes map[string]common.QueryRoute `mapstructure:"routes"` Clients string `mapstructure:"clients"` DefaultBackend string `mapstructure:"default-backend"` PickSessionLevel string `mapstructure:"pick-session-level"` ConnectionTTL int `mapstructure:"connection-ttl"` }
type PoolConfig ¶
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.