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

Method executeOnGroupNameHooks

hooks.go:385–398  ·  view source on GitHub ↗
(group Group)

Source from the content-addressed store, hash-verified

383}
384
385func (h *Hooks) executeOnGroupNameHooks(group Group) error {
386 // Check mounting
387 if h.app.mountFields.mountPath != "" {
388 group.Prefix = h.app.mountFields.mountPath + group.Prefix
389 }
390
391 for _, v := range h.onGroupName {
392 if err := v(group); err != nil {
393 return err
394 }
395 }
396
397 return nil
398}
399
400func (h *Hooks) executeOnListenHooks(listenData *ListenData) error {
401 for _, v := range h.onListen {

Callers 2

NameMethod · 0.80

Calls

no outgoing calls