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

Function NewInboxHandler

coderd/notifications/dispatch/inbox.go:31–33  ·  view source on GitHub ↗
(log slog.Logger, store InboxStore, ps pubsub.Pubsub)

Source from the content-addressed store, hash-verified

29}
30
31func NewInboxHandler(log slog.Logger, store InboxStore, ps pubsub.Pubsub) *InboxHandler {
32 return &InboxHandler{log: log, store: store, pubsub: ps}
33}
34
35func (s *InboxHandler) Dispatcher(payload types.MessagePayload, titleTmpl, bodyTmpl string, _ template.FuncMap) (DeliveryFunc, error) {
36 return s.dispatch(payload, titleTmpl, bodyTmpl), nil

Callers 5

defaultHandlersFunction · 0.92
TestInboxFunction · 0.92
TestRunFunction · 0.92
TestRunWithSMTPFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestInboxFunction · 0.74
TestRunFunction · 0.74
TestRunWithSMTPFunction · 0.74