Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string `json:"host"` Port int `json:"port"` DB int `json:"db"` Username string `json:"username"` Password string `json:"password"` MaxRetries int `json:"maxRetries"` DialTimeoutMillisecond time.Duration `json:"dialTimeoutMillisecond"` ReadTimeoutMillisecond time.Duration `json:"readTimeoutMillisecond"` WriteTimeoutMillisecond time.Duration `json:"writeTimeoutMillisecond"` PoolFIFO bool `json:"poolFIFO"` PoolSize int `json:"poolSize"` MinIdleConns int `json:"minIdleConns"` MaxIdleConns int `json:"maxIdleConns"` ConnMaxIdleTimeMinute time.Duration `json:"connMaxIdleTimeMinute"` }
type LoggerHook ¶
func NewLoggerHook ¶
func NewLoggerHook(helper *log.Helper) *LoggerHook
func (*LoggerHook) DialHook ¶
func (l *LoggerHook) DialHook(next redis.DialHook) redis.DialHook
func (*LoggerHook) ProcessHook ¶
func (l *LoggerHook) ProcessHook(next redis.ProcessHook) redis.ProcessHook
func (*LoggerHook) ProcessPipelineHook ¶
func (l *LoggerHook) ProcessPipelineHook(next redis.ProcessPipelineHook) redis.ProcessPipelineHook
Click to show internal directories.
Click to hide internal directories.