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

Method Dispatcher

coderd/notifications/dispatch/inbox.go:35–37  ·  view source on GitHub ↗
(payload types.MessagePayload, titleTmpl, bodyTmpl string, _ template.FuncMap)

Source from the content-addressed store, hash-verified

33}
34
35func (s *InboxHandler) Dispatcher(payload types.MessagePayload, titleTmpl, bodyTmpl string, _ template.FuncMap) (DeliveryFunc, error) {
36 return s.dispatch(payload, titleTmpl, bodyTmpl), nil
37}
38
39func (s *InboxHandler) dispatch(payload types.MessagePayload, title, body string) DeliveryFunc {
40 return func(ctx context.Context, msgID uuid.UUID) (bool, error) {

Callers 2

TestInboxFunction · 0.95

Calls 1

dispatchMethod · 0.95

Tested by 2

TestInboxFunction · 0.76