Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewHandlerFuncs = map[string]NewHandlerFunc{}
NewHandlerFuncs is a map containing all the registered notification handlers.
Functions ¶
func InitHandlers ¶
func InitHandlers(ctx context.Context, handlerConf map[string]map[string]any) map[string]handler.Handler
InitHandlers initializes the notification handlers with the configuration and the log from a service.
func Register ¶
func Register(name string, f NewHandlerFunc)
Register registers a new notification handler new function. Not safe for concurrent use. Safe for use from package init.
Types ¶
Click to show internal directories.
Click to hide internal directories.