more flow
This commit is contained in:
+3
-1
@@ -51,9 +51,11 @@ type Hooks struct {
|
||||
OnError []HookRef `json:"onError,omitempty"`
|
||||
}
|
||||
|
||||
// HookRef names a registered hook and its params.
|
||||
// HookRef names a registered hook and its params. When, if set, names a
|
||||
// registered predicate; the hook is skipped when it returns false.
|
||||
type HookRef struct {
|
||||
Type string `json:"type"`
|
||||
When string `json:"when,omitempty"`
|
||||
Params json.RawMessage `json:"params,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user