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

Method withGroup

logger/handler.go:227–232  ·  view source on GitHub ↗

withGroup returns a new handler with the given attribute group added.

(group attrGroup)

Source from the content-addressed store, hash-verified

225
226// withGroup returns a new handler with the given attribute group added.
227func (h *Handler) withGroup(group attrGroup) *Handler {
228 h2 := *h
229 h2.groups = append(slices.Clip(h.groups), group)
230 h2.hooks = slices.Clip(h.hooks)
231 return &h2
232}

Callers 2

WithAttrsMethod · 0.95
WithGroupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected