Handler executes a single hook invocation. It is built by a [HandlerFactory] for one [Hook] and invoked at most once. The executor wraps ctx with the hook's timeout before calling Run, so handlers MUST NOT apply [Hook.GetTimeout] themselves.
| 23 | // executor wraps ctx with the hook's timeout before calling Run, so |
| 24 | // handlers MUST NOT apply [Hook.GetTimeout] themselves. |
| 25 | type Handler interface { |
| 26 | Run(ctx context.Context, input []byte) (HandlerResult, error) |
| 27 | } |
| 28 | |
| 29 | // HandlerResult is the raw outcome of a [Handler.Run] call. |
| 30 | // |
no outgoing calls
no test coverage detected