Has reports whether any hooks are configured for event.
(event EventType)
| 154 | |
| 155 | // Has reports whether any hooks are configured for event. |
| 156 | func (e *Executor) Has(event EventType) bool { |
| 157 | return len(e.events[event]) > 0 |
| 158 | } |
| 159 | |
| 160 | // Dispatch runs the hooks registered for event and aggregates their |
| 161 | // verdicts into a single [Result]. Sets input.HookEventName so handlers |
no outgoing calls