hook

package
v0.9.2-0...-e652594 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(hook interface{}, opType operator.OpType, opts ...interface{}) error

Do call the specific method to handle hook based on hType If opts has valid value, use it instead of original hook

Types

type AfterInsertHook

type AfterInsertHook interface {
	AfterInsert() error
}

type AfterQueryHook

type AfterQueryHook interface {
	AfterQuery() error
}

type AfterRemoveHook

type AfterRemoveHook interface {
	AfterRemove() error
}

type AfterUpdateHook

type AfterUpdateHook interface {
	AfterUpdate() error
}

type AfterUpsertHook

type AfterUpsertHook interface {
	AfterUpsert() error
}

type BeforeInsertHook

type BeforeInsertHook interface {
	BeforeInsert() error
}

InsertHook defines the insert hook interface

type BeforeQueryHook

type BeforeQueryHook interface {
	BeforeQuery() error
}

QueryHook defines the query hook interface

type BeforeRemoveHook

type BeforeRemoveHook interface {
	BeforeRemove() error
}

RemoveHook defines the remove hook interface

type BeforeUpdateHook

type BeforeUpdateHook interface {
	BeforeUpdate() error
}

UpdateHook defines the Update hook interface

type BeforeUpsertHook

type BeforeUpsertHook interface {
	BeforeUpsert() error
}

UpsertHook defines the upsert hook interface

Jump to

Keyboard shortcuts

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