Documentation ¶
Index ¶
- type MetricsHook
- func (hook MetricsHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
- func (hook MetricsHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error
- func (hook MetricsHook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)
- func (hook MetricsHook) BeforeProcessPipeline(ctx context.Context, cmds []redis.Cmder) (context.Context, error)
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 (MetricsHook) BeforeProcessPipeline ¶
Click to show internal directories.
Click to hide internal directories.