MCPcopy
hub / github.com/gotify/server / OnUserAdded

Method OnUserAdded

api/user.go:37–39  ·  view source on GitHub ↗

OnUserAdded is called on user creation.

(cb func(uid uint) error)

Source from the content-addressed store, hash-verified

35
36// OnUserAdded is called on user creation.
37func (c *UserChangeNotifier) OnUserAdded(cb func(uid uint) error) {
38 c.userAddedCallbacks = append(c.userAddedCallbacks, cb)
39}
40
41func (c *UserChangeNotifier) fireUserDeleted(uid uint) error {
42 for _, cb := range c.userDeletedCallbacks {

Callers 3

BeforeTestMethod · 0.80
CreateFunction · 0.80

Calls

no outgoing calls

Tested by 2

BeforeTestMethod · 0.64