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)
| 74 | // Enqueue queues a notification message for later delivery, assumes no structured input data. |
| 75 | // Returns the IDs of successfully enqueued messages, if any. |
| 76 | func (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. |