Documentation
¶
Index ¶
- func InitMockRedis() *redis.Client
- func InitRedis(conf RedisConf) (*redis.Client, error)
- type DB
- type DatabaseOption
- type Hooks
- type MysqlConf
- type RedisConf
- type RedisHook
- func (*RedisHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
- func (*RedisHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error
- func (*RedisHook) BeforeProcess(ctx context.Context, _ redis.Cmder) (context.Context, error)
- func (*RedisHook) BeforeProcessPipeline(ctx context.Context, _ []redis.Cmder) (context.Context, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitMockRedis ¶
func InitMockRedis() *redis.Client
Types ¶
type DatabaseOption ¶
type DatabaseOption struct {
RegisterHookDriver bool
}
type RedisHook ¶
type RedisHook struct{}
func (*RedisHook) AfterProcess ¶
func (*RedisHook) AfterProcessPipeline ¶
func (*RedisHook) BeforeProcess ¶
Click to show internal directories.
Click to hide internal directories.