hook

package
v0.0.0-...-730ab85 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbHook

type DbHook struct {
	Ctx context.Context
}

func (DbHook) AfterCreate

func (dbHook DbHook) AfterCreate(scope *gorm.Scope)

func (DbHook) AfterDelete

func (dbHook DbHook) AfterDelete(scope *gorm.Scope)

func (DbHook) AfterFind

func (dbHook DbHook) AfterFind(scope *gorm.Scope)

func (DbHook) AfterUpdate

func (dbHook DbHook) AfterUpdate(scope *gorm.Scope)

type RedisHook

type RedisHook struct{}

func (RedisHook) AfterProcess

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

func (RedisHook) AfterProcessPipeline

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

func (RedisHook) BeforeProcess

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

func (RedisHook) BeforeProcessPipeline

func (RedisHook) 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