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

Method Dispatcher

coderd/notifications/metrics_test.go:533–544  ·  view source on GitHub ↗
(payload types.MessagePayload, title, body string, helpers template.FuncMap)

Source from the content-addressed store, hash-verified

531}
532
533func (bh *barrierHandler) Dispatcher(payload types.MessagePayload, title, body string, helpers template.FuncMap) (dispatch.DeliveryFunc, error) {
534 deliverFn, err := bh.h.Dispatcher(payload, title, body, helpers)
535 if err != nil {
536 return nil, err
537 }
538
539 return func(ctx context.Context, msgID uuid.UUID) (retryable bool, err error) {
540 bh.wg.Wait()
541
542 return deliverFn(ctx, msgID)
543 }, nil
544}

Callers

nothing calls this directly

Calls 2

DispatcherMethod · 0.65
WaitMethod · 0.65

Tested by

no test coverage detected