HookBase provides a set of default methods for each hook. It should be embedded in all hooks.
| 684 | // HookBase provides a set of default methods for each hook. It should be embedded in |
| 685 | // all hooks. |
| 686 | type HookBase struct { |
| 687 | Hook |
| 688 | Log *slog.Logger |
| 689 | Opts *HookOptions |
| 690 | } |
| 691 | |
| 692 | // ID returns the ID of the hook. |
| 693 | func (h *HookBase) ID() string { |
nothing calls this directly
no outgoing calls
no test coverage detected