MCPcopy
hub / github.com/mochi-mqtt/server / HookBase

Struct HookBase

hooks.go:686–690  ·  view source on GitHub ↗

HookBase provides a set of default methods for each hook. It should be embedded in all hooks.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected