hooks

package
v1.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsHook

type MetricsHook struct {
	// contains filtered or unexported fields
}

func NewMetricsHook

func NewMetricsHook(client *redis.Client) *MetricsHook

func (MetricsHook) AfterProcess

func (hook MetricsHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error

func (MetricsHook) AfterProcessPipeline

func (hook MetricsHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error

func (MetricsHook) BeforeProcess

func (hook MetricsHook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)

func (MetricsHook) BeforeProcessPipeline

func (hook MetricsHook) BeforeProcessPipeline(ctx context.Context, cmds []redis.Cmder) (context.Context, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL