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

Method Enqueue

coderd/notifications/enqueuer.go:76–78  ·  view source on GitHub ↗

Enqueue queues a notification message for later delivery, assumes no structured input data. Returns the IDs of successfully enqueued messages, if any.

(ctx context.Context, userID, templateID uuid.UUID, labels map[string]string, createdBy string, targets ...uuid.UUID)

Source from the content-addressed store, hash-verified

74// Enqueue queues a notification message for later delivery, assumes no structured input data.
75// Returns the IDs of successfully enqueued messages, if any.
76func (s *StoreEnqueuer) Enqueue(ctx context.Context, userID, templateID uuid.UUID, labels map[string]string, createdBy string, targets ...uuid.UUID) ([]uuid.UUID, error) {
77 return s.EnqueueWithData(ctx, userID, templateID, labels, nil, createdBy, targets...)
78}
79
80// Enqueue queues a notification message for later delivery.
81// Messages will be dequeued by a notifier later and dispatched.

Callers 15

TestMetricsFunction · 0.95
TestPendingUpdatesMetricFunction · 0.95
TestSMTPDispatchFunction · 0.95
TestWebhookDispatchFunction · 0.95
TestBackpressureFunction · 0.95
TestRetriesFunction · 0.95
TestNotifierPausedFunction · 0.95

Calls 1

EnqueueWithDataMethod · 0.95

Tested by 15

TestMetricsFunction · 0.76
TestPendingUpdatesMetricFunction · 0.76
TestSMTPDispatchFunction · 0.76
TestWebhookDispatchFunction · 0.76
TestBackpressureFunction · 0.76
TestRetriesFunction · 0.76
TestNotifierPausedFunction · 0.76