Documentation ¶
Index ¶
- Constants
- type Config
- func (c *Config) GetHbase() (cfg *Hbase, err error)
- func (c *Config) GetKafkaAddrs(zkCfg *Zookeeper) (addrs []string, err error)
- func (c *Config) GetPostgreSQL() (cfg *SqlCluster, err error)
- func (c *Config) GetRedis() (cfg *Redis, err error)
- func (c *Config) GetZookeeper() (cfg *Zookeeper, err error)
- func (c *Config) Unmarshal(value interface{}) (err error)
- func (c *Config) UseConsul(config *api.Config) *Config
- func (c *Config) Watch(onChanged func(err error)) (err error)
- type DB
- type Hbase
- type Redis
- type Sql
- type SqlCluster
- type Zookeeper
Constants ¶
View Source
const ( Key_Postgresql = "common/postgresql" Key_Redis = "common/redis" Key_Zookeeper = "common/zookeeper" Key_Hbase = "common/hbase" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetKafkaAddrs ¶
func (*Config) GetPostgreSQL ¶
func (c *Config) GetPostgreSQL() (cfg *SqlCluster, err error)
func (*Config) GetZookeeper ¶
type SqlCluster ¶
Click to show internal directories.
Click to hide internal directories.