package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Mar 22, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
On executes the given hook only of the given operation.
hook.On(Log, ent.Delete|ent.Create)
Reject returns a hook that rejects all operations that match op.
func (T) Hooks() []ent.Hook {
return []ent.Hook{
Reject(ent.Delete|ent.Update),
}
}
The NodeFunc type is an adapter to allow the use of ordinary
function as Node mutator.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.