MCPcopy
hub / github.com/LyricTian/gin-admin / HookOption

FuncType HookOption

pkg/logging/hook.go:42–42  ·  view source on GitHub ↗

HookOption a hook parameter options

func(*hookOptions)

Source from the content-addressed store, hash-verified

40
41// HookOption a hook parameter options
42type HookOption func(*hookOptions)
43
44// Creates a hook to be added to an instance of logger
45func NewHook(exec HookExecuter, opt ...HookOption) *Hook {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected