Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PrintfDSN = true
)
Functions ¶
This section is empty.
Types ¶
type ComponentCron ¶
type ComponentCron struct { ResizeEnable int `json:"resize_enable" yaml:"resize_enable"` ChannelBuffer int `json:"channel_buffer" yaml:"channel_buffer"` ResizeDuration int `json:"resize_duration" yaml:"resize_duration"` ResizeThresholdRatio int `json:"resize_threshold_ratio" yaml:"resize_threshold_ratio"` ResizeThresholdLimit int `json:"resize_threshold_limit" yaml:"resize_threshold_limit"` ResizeThresholdTimes int `json:"resize_threshold_times" yaml:"resize_threshold_times"` }
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 ComponentMysql struct {
SlowThreshold int
}
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"` }
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.