2016-04-13 23:51:58 +10:00
|
|
|
package boil
|
|
|
|
|
|
|
|
// HookPoint is the point in time at which we hook
|
|
|
|
type HookPoint int
|
|
|
|
|
2016-07-19 14:07:12 +10:00
|
|
|
// the hook point constants
|
2016-04-13 23:51:58 +10:00
|
|
|
const (
|
2016-09-01 11:12:46 +10:00
|
|
|
BeforeInsertHook HookPoint = iota + 1
|
|
|
|
BeforeUpdateHook
|
|
|
|
BeforeDeleteHook
|
|
|
|
BeforeUpsertHook
|
|
|
|
AfterInsertHook
|
|
|
|
AfterSelectHook
|
|
|
|
AfterUpdateHook
|
|
|
|
AfterDeleteHook
|
|
|
|
AfterUpsertHook
|
2016-04-13 23:51:58 +10:00
|
|
|
)
|