package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Feb 9, 2023
License: MulanPSL-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type EntityEs struct {
Addr string `yaml:"addr"`
User string `yaml:"user"`
Password string `yaml:"password"`
MaxIdleCnt int `yaml:"max_idle"`
}
type EntityMongo struct {
Addr string `yaml:"addr"`
User string `yaml:"user"`
Password string `yaml:"password"`
Database string `yaml:"database"`
DSN string `yaml:"dsn"`
}
type EntityMysql struct {
MySqlConnect `yaml:",inline"`
MaxOpen int `yaml:"max_open"`
MaxIdle int `yaml:"max_idle"`
Slave []MySqlConnect `yaml:"slave"`
}
type EntityRedis struct {
RedisConnect `yaml:",inline"`
PoolSize int `yaml:"poolsize"`
}
type MySqlConnect struct {
Addr string `yaml:"addr"`
UserName string `yaml:"user"`
Password string `yaml:"password"`
Database string `yaml:"db"`
Charset string `yaml:"charset"`
}
type RedisConnect struct {
Addr string `yaml:"addr"`
Pwd string `yaml:"password"`
DB int `yaml:"db"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.