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

Method OnGroup

hooks.go:259–263  ·  view source on GitHub ↗

OnGroup is a hook to execute user functions on each group registration. Also you can get group properties by group parameter.

(handler ...OnGroupHandler)

Source from the content-addressed store, hash-verified

257// OnGroup is a hook to execute user functions on each group registration.
258// Also you can get group properties by group parameter.
259func (h *Hooks) OnGroup(handler ...OnGroupHandler) {
260 h.app.mutex.Lock()
261 h.onGroup = append(h.onGroup, handler...)
262 h.app.mutex.Unlock()
263}
264
265// OnGroupName is a hook to execute user functions on each group naming.
266// Also you can get group properties by group parameter.

Callers 3

Test_Hook_OnGroupFunction · 0.80
Test_Hook_OnGroup_MountFunction · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 3

Test_Hook_OnGroupFunction · 0.64
Test_Hook_OnGroup_MountFunction · 0.64