Documentation ¶
Index ¶
- Constants
- type AutoMysql
- type AutoRedis
- type AutoZookeeper
- func (p *AutoZookeeper) Condition() bool
- func (*AutoZookeeper) Name() string
- func (p *AutoZookeeper) Named() map[string]interface{}
- func (p *AutoZookeeper) OnStart() error
- func (p *AutoZookeeper) OnStop() error
- func (*AutoZookeeper) Order() int
- func (p *AutoZookeeper) Typed() map[reflect.Type]interface{}
Constants ¶
View Source
const ( MySQLDatasourceKey = "mysql" MySQLDatasourceDisableKey = MySQLDatasourceKey + ".disable" MySQLDatasourceOrder = 20 )
View Source
const ( RedisKey = "redis" RedisDisableKey = RedisKey + ".disable" RedisAddrKey = RedisKey + ".addr" RedisPasswordKey = RedisKey + ".password" RedisDBKey = RedisKey + ".db" RedisPoolSizeKey = RedisKey + ".poolSize" RedisMaxIdleKey = RedisKey + ".maxIdle" RedisDialTimeoutKey = RedisKey + ".dialTimeout" RedisReadTimeoutKey = RedisKey + ".readTimeout" RedisWriteTimeoutKey = RedisKey + ".writeTimeout" RedisDatasourceOrder = 30 )
View Source
const ( ZookeeperKey = "zookeeper" ZookeeperDisableKey = ZookeeperKey + ".disable" ZookeeperServersKey = ZookeeperKey + ".servers" ZookeepersessionTimeoutKey = ZookeeperKey + ".sessionTimeout" ZookeeperOrder = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoMysql ¶
type AutoMysql struct { Conf config.TypedConfig `@siu:"name='environment',default='type'"` // contains filtered or unexported fields }
type AutoRedis ¶
type AutoRedis struct { Conf config.TypedConfig `@siu:"name='environment',default='type'"` // contains filtered or unexported fields }
type AutoZookeeper ¶
type AutoZookeeper struct { Conf config.TypedConfig `@siu:"name='environment',default='type'"` // contains filtered or unexported fields }
func (*AutoZookeeper) Condition ¶
func (p *AutoZookeeper) Condition() bool
func (*AutoZookeeper) Name ¶
func (*AutoZookeeper) Name() string
func (*AutoZookeeper) Named ¶ added in v1.1.0
func (p *AutoZookeeper) Named() map[string]interface{}
func (*AutoZookeeper) OnStart ¶
func (p *AutoZookeeper) OnStart() error
func (*AutoZookeeper) OnStop ¶
func (p *AutoZookeeper) OnStop() error
func (*AutoZookeeper) Order ¶
func (*AutoZookeeper) Order() int
func (*AutoZookeeper) Typed ¶ added in v1.1.0
func (p *AutoZookeeper) Typed() map[reflect.Type]interface{}
Click to show internal directories.
Click to hide internal directories.