2016-04-13 15:51:58 +02:00
|
|
|
package boil
|
|
|
|
|
|
|
|
// HookPoint is the point in time at which we hook
|
|
|
|
type HookPoint int
|
|
|
|
|
2016-07-19 06:07:12 +02:00
|
|
|
// the hook point constants
|
2016-04-13 15:51:58 +02:00
|
|
|
const (
|
2016-08-28 13:23:08 +02:00
|
|
|
HookBeforeInsert HookPoint = iota + 1
|
|
|
|
HookBeforeUpdate
|
|
|
|
HookBeforeDelete
|
|
|
|
HookBeforeUpsert
|
|
|
|
HookAfterInsert
|
2016-08-28 13:13:45 +02:00
|
|
|
HookAfterSelect
|
2016-04-13 15:51:58 +02:00
|
|
|
HookAfterUpdate
|
2016-08-28 13:13:45 +02:00
|
|
|
HookAfterDelete
|
2016-08-04 05:11:45 +02:00
|
|
|
HookAfterUpsert
|
2016-04-13 15:51:58 +02:00
|
|
|
)
|