Documentation ¶
Index ¶
- Variables
- func GetPool(addr, password string, poolSize, maxIdle, idleTimeout, indexDb int, ...) (*redis.Client, error)
- func NewRedisTracingHook(logger winner_logger.Logger) redis.Hook
- type RedisHookSpan
- type TracingHook
- func (TracingHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
- func (TracingHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error
- func (TracingHook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)
- func (TracingHook) BeforeProcessPipeline(ctx context.Context, cmds []redis.Cmder) (context.Context, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var EventDestroyPrefix = "Destroy_Redis"
Functions ¶
func GetPool ¶
func GetPool(addr, password string, poolSize, maxIdle, idleTimeout, indexDb int, wl winner_logger.Logger, tracing bool) (*redis.Client, error)
初始化redis 连接池
func NewRedisTracingHook ¶ added in v1.0.1
func NewRedisTracingHook(logger winner_logger.Logger) redis.Hook
Types ¶
type RedisHookSpan ¶ added in v1.0.1
type RedisHookSpan string
type TracingHook ¶ added in v1.0.1
type TracingHook struct{}
func (TracingHook) AfterProcess ¶ added in v1.0.1
func (TracingHook) AfterProcessPipeline ¶ added in v1.0.1
func (TracingHook) BeforeProcess ¶ added in v1.0.1
func (TracingHook) BeforeProcessPipeline ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.