github.com/go-redis/redis/v8.hooks.hooks (field)
15 uses
github.com/go-redis/redis/v8 (current package)
redis.go#L31: hooks []Hook
redis.go#L35: hs.hooks = hs.hooks[:len(hs.hooks):len(hs.hooks)]
redis.go#L45: hs.hooks = append(hs.hooks, hook)
redis.go#L51: if len(hs.hooks) == 0 {
redis.go#L58: for ; hookIndex < len(hs.hooks) && retErr == nil; hookIndex++ {
redis.go#L59: ctx, retErr = hs.hooks[hookIndex].BeforeProcess(ctx, cmd)
redis.go#L70: if err := hs.hooks[hookIndex].AfterProcess(ctx, cmd); err != nil {
redis.go#L82: if len(hs.hooks) == 0 {
redis.go#L89: for ; hookIndex < len(hs.hooks) && retErr == nil; hookIndex++ {
redis.go#L90: ctx, retErr = hs.hooks[hookIndex].BeforeProcessPipeline(ctx, cmds)
redis.go#L101: if err := hs.hooks[hookIndex].AfterProcessPipeline(ctx, cmds); err != nil {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |