MCPcopy Index your code
hub / github.com/frain-dev/convoy / Queuer

Interface Queuer

queue/queue.go:17–21  ·  view source on GitHub ↗

Queuer enqueues asynq tasks. The driver injects the active OTel trace context from ctx into the task's headers so worker spans become children of the producer's; callers don't need to do anything special.

Source from the content-addressed store, hash-verified

15// context from ctx into the task's headers so worker spans become children
16// of the producer's; callers don't need to do anything special.
17type Queuer interface {
18 Write(ctx context.Context, taskName convoy.TaskName, queueName convoy.QueueName, job *Job) error
19 WriteWithoutTimeout(ctx context.Context, taskName convoy.TaskName, queueName convoy.QueueName, job *Job) error
20 Options() QueueOptions
21}
22
23type Job struct {
24 ID string `json:"id"`

Callers 16

runMethod · 0.65
VerifyRequestMethod · 0.65
signPayloadMethod · 0.65
DecodeMsgPackFunction · 0.65
TestWriteMethod · 0.65
TestProcessEventCreatedFunction · 0.65
TestProcessBatchRetryFunction · 0.65
RunMethod · 0.65
NewConsumerFunction · 0.65
NewSchedulerFunction · 0.65

Implementers 5

MockQueuermocks/queue.go
RedisQueuequeue/redis/client.go
testQueueinternal/dataplane/notifications_test.
recordingQueuerapi/public_integration_test.go

Calls

no outgoing calls

Tested by

no test coverage detected