MCPcopy
hub / github.com/pocketbase/pocketbase / Length

Method Length

tools/hook/hook.go:139–144  ·  view source on GitHub ↗

Length returns to total number of registered hook handlers.

()

Source from the content-addressed store, hash-verified

137
138// Length returns to total number of registered hook handlers.
139func (h *Hook[T]) Length() int {
140 h.mu.RLock()
141 defer h.mu.RUnlock()
142
143 return len(h.handlers)
144}
145
146// Trigger executes all registered hook handlers one by one
147// with the specified event as an argument.

Callers 1

TestHookLengthFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestHookLengthFunction · 0.36