MCPcopy Index your code
hub / github.com/coder/coder / Dispatcher

Method Dispatcher

coderd/notifications/spec.go:35–35  ·  view source on GitHub ↗

Dispatcher constructs a DeliveryFunc to be used for delivering a notification via the chosen method.

(payload types.MessagePayload, title, body string, helpers template.FuncMap)

Source from the content-addressed store, hash-verified

33type Handler interface {
34 // Dispatcher constructs a DeliveryFunc to be used for delivering a notification via the chosen method.
35 Dispatcher(payload types.MessagePayload, title, body string, helpers template.FuncMap) (dispatch.DeliveryFunc, error)
36}
37
38// Enqueuer enqueues a new notification message in the store and returns its ID, should it enqueue without failure.

Callers 4

DispatcherMethod · 0.65
DispatcherMethod · 0.65
prepareMethod · 0.65
sendInboxNotificationFunction · 0.65

Implementers 8

dispatchInterceptorcoderd/notifications/utils_test.go
chanHandlercoderd/notifications/utils_test.go
barrierHandlercoderd/notifications/metrics_test.go
fakeHandlercoderd/notifications/notifications_tes
santaHandlercoderd/notifications/manager_test.go
InboxHandlercoderd/notifications/dispatch/inbox.go
SMTPHandlercoderd/notifications/dispatch/smtp.go
WebhookHandlercoderd/notifications/dispatch/webhook.

Calls

no outgoing calls

Tested by 3

DispatcherMethod · 0.52
DispatcherMethod · 0.52
sendInboxNotificationFunction · 0.52