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: 4
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, entv1.Delete|entv1.Create)
Reject returns a hook that rejects all operations that match op.
func (T) Hooks() []entv1.Hook {
return []entv1.Hook{
Reject(entv1.Delete|entv1.Update),
}
}
The CarFunc type is an adapter to allow the use of ordinary
function as Car mutator.
The UserFunc type is an adapter to allow the use of ordinary
function as User mutator.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.