Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PrintfDSN = true
)
Functions ¶
This section is empty.
Types ¶
type ComponentCron ¶
type ComponentEs ¶
type ComponentEs struct { SlowThreshold, MaxConnTime, MaxIdleTime, MaxRepTime, KeepAliveTime int }
type ComponentMongo ¶
type ComponentMongo struct { MinPoolSize, MaxPoolSize, ReqMaxTime, SelectionTime, MaxIdleTime, SlowThreshold int }
type ComponentMysql ¶
type ComponentRedis ¶
type ComponentRedis struct { IdleCheckTime, MaxReadTime, MaxWriteTime, MaxRequestTime, SlowThreshold int }
type ConnectMysql ¶
type ConnectMysql struct { Addr string `yaml:"addr"` UserName string `yaml:"user"` Password string `yaml:"password"` Database string `yaml:"db"` Charset string `yaml:"charset"` Options string `yaml:"options"` // contains filtered or unexported fields }
func (*ConnectMysql) GetConnectDSN ¶
func (c *ConnectMysql) GetConnectDSN() string
func (*ConnectMysql) GetPrintDSN ¶
func (c *ConnectMysql) GetPrintDSN() string
func (*ConnectMysql) ParserDSN ¶
func (c *ConnectMysql) ParserDSN(val string) error
type ConnectRedis ¶
type EntityMongo ¶
type EntityMysql ¶
type EntityMysql struct { MaxOpen int `yaml:"max_open"` MaxIdle int `yaml:"max_idle"` Master ConnectMysql `yaml:",inline"` Slave []ConnectMysql `yaml:"slave"` }
type EntityRedis ¶
type EntityRedis struct { ConnectRedis `yaml:",inline"` PoolSize int `yaml:"poolsize"` }
type EsRespError ¶
type EsRespSearch ¶
type EsRespSearchItem ¶
Click to show internal directories.
Click to hide internal directories.