MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Handler

Struct Handler

logger/handler.go:55–64  ·  view source on GitHub ↗

Handler is an implementation of [slog.Handler] with support for hooks.

Source from the content-addressed store, hash-verified

53
54// Handler is an implementation of [slog.Handler] with support for hooks.
55type Handler struct {
56 out io.Writer
57 config *Config
58
59 mu *sync.Mutex // Mutex is shared between all instances
60
61 groups []attrGroup
62
63 hooks []Hook
64}
65
66// NewHandler creates a new [Handler] instance.
67func NewHandler(out io.Writer, config *Config) *Handler {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected