package
Version:
v0.1.5-0...-40e571d
Opens a new window with list of versions in this module.
Published: Apr 13, 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, entv2.Delete|entv2.Create)
Reject returns a hook that rejects all operations that match op.
func (T) Hooks() []entv2.Hook {
return []entv2.Hook{
Reject(entv2.Delete|entv2.Update),
}
}
The CarFunc type is an adapter to allow the use of ordinary
function as Car mutator.
Chain acts as a list of hooks and is effectively immutable.
Once created, it will always hold the same set of hooks in the same order.
NewChain creates a new chain of hooks.
Append extends a chain, adding the specified hook
as the last ones in the mutation flow.
Extend extends a chain, adding the specified chain
as the last ones in the mutation flow.
Hook chains the list of hooks and returns the final hook.
The GroupFunc type is an adapter to allow the use of ordinary
function as Group mutator.
The PetFunc type is an adapter to allow the use of ordinary
function as Pet 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.