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 12:54:46 +02:00
|
|
|
HookAfterInsert HookPoint = iota + 1
|
2016-04-13 15:51:58 +02:00
|
|
|
HookAfterUpdate
|
2016-08-04 05:11:45 +02:00
|
|
|
HookAfterUpsert
|
2016-08-28 12:54:46 +02:00
|
|
|
HookBeforeInsert
|
2016-04-13 15:51:58 +02:00
|
|
|
HookBeforeUpdate
|
2016-08-04 05:11:45 +02:00
|
|
|
HookBeforeUpsert
|
2016-04-13 15:51:58 +02:00
|
|
|
)
|