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

Interface Handler

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

Handler is responsible for preparing and delivering a notification by a given method.

Source from the content-addressed store, hash-verified

31
32// Handler is responsible for preparing and delivering a notification by a given method.
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.
39type Enqueuer interface {

Callers 42

DispatcherMethod · 0.65
DispatcherMethod · 0.65
prepareMethod · 0.65
sendInboxNotificationFunction · 0.65
TestCSRFErrorFunction · 0.95
NewOptionsFunction · 0.95
newTunnelServerFunction · 0.95
NewWorkspaceProxyReplicaFunction · 0.95
RecoverFunction · 0.45
TestRecoverFunction · 0.45
RoundTripMethod · 0.45
WithWebsocketSupportFunction · 0.45

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

no test coverage detected