hooks

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterLoad

func AfterLoad(ctx context.Context, tx builder.QueryExecer, model interface{}) error

func AfterSave

func AfterSave(ctx context.Context, tx builder.QueryExecer, model interface{}) error

func BeforeSave

func BeforeSave(ctx context.Context, tx builder.QueryExecer, model interface{}) error

Types

type AfterLoader

type AfterLoader interface {
	AfterLoad(ctx context.Context, tx builder.QueryExecer) error
}

type AfterSaver

type AfterSaver interface {
	AfterSave(ctx context.Context, tx builder.QueryExecer) error
}

type BeforeSaver

type BeforeSaver interface {
	BeforeSave(ctx context.Context, tx builder.QueryExecer) error
}

Jump to

Keyboard shortcuts

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