autoconfig

package
v1.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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
}

func (*AutoMysql) Condition

func (p *AutoMysql) Condition() bool

func (*AutoMysql) Name

func (*AutoMysql) Name() string

func (*AutoMysql) Named added in v1.1.0

func (p *AutoMysql) Named() map[string]interface{}

func (*AutoMysql) OnStart

func (p *AutoMysql) OnStart() error

func (*AutoMysql) OnStop

func (p *AutoMysql) OnStop() error

func (*AutoMysql) Order

func (*AutoMysql) Order() int

func (*AutoMysql) Typed added in v1.1.0

func (p *AutoMysql) Typed() map[reflect.Type]interface{}

type AutoRedis

type AutoRedis struct {
	Conf config.TypedConfig `@siu:"name='environment',default='type'"`
	// contains filtered or unexported fields
}

func (*AutoRedis) Condition

func (p *AutoRedis) Condition() bool

func (*AutoRedis) Name

func (*AutoRedis) Name() string

func (*AutoRedis) Named added in v1.1.0

func (p *AutoRedis) Named() map[string]interface{}

func (*AutoRedis) OnStart

func (p *AutoRedis) OnStart() error

func (*AutoRedis) OnStop

func (p *AutoRedis) OnStop() error

func (*AutoRedis) Order

func (*AutoRedis) Order() int

func (*AutoRedis) Typed added in v1.1.0

func (p *AutoRedis) Typed() map[reflect.Type]interface{}

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{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL