MCPcopy
hub / github.com/gofiber/fiber / executeOnGroupHooks

Method executeOnGroupHooks

hooks.go:370–383  ·  view source on GitHub ↗
(group Group)

Source from the content-addressed store, hash-verified

368}
369
370func (h *Hooks) executeOnGroupHooks(group Group) error {
371 // Check mounting
372 if h.app.mountFields.mountPath != "" {
373 group.Prefix = h.app.mountFields.mountPath + group.Prefix
374 }
375
376 for _, v := range h.onGroup {
377 if err := v(group); err != nil {
378 return err
379 }
380 }
381
382 return nil
383}
384
385func (h *Hooks) executeOnGroupNameHooks(group Group) error {
386 // Check mounting

Callers 4

GroupMethod · 0.80
GroupMethod · 0.80
GroupMethod · 0.80

Calls

no outgoing calls

Tested by 1