-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdriver.go
More file actions
28 lines (26 loc) · 988 Bytes
/
driver.go
File metadata and controls
28 lines (26 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package queue
// Driver identifies the queue backend.
// @group Driver
//
// Example: driver values
//
// fmt.Println(queue.DriverNull, queue.DriverSync, queue.DriverWorkerpool, queue.DriverDatabase, queue.DriverRedis, queue.DriverNATS, queue.DriverSQS, queue.DriverRabbitMQ)
type Driver string
const (
// DriverNull drops dispatched jobs and performs no execution.
DriverNull Driver = "null"
// DriverSync runs handlers inline in the caller goroutine.
DriverSync Driver = "sync"
// DriverWorkerpool runs handlers on an in-memory workerpool.
DriverWorkerpool Driver = "workerpool"
// DriverDatabase selects the SQL-backed queue backend.
DriverDatabase Driver = "database"
// DriverRedis selects the Redis (asynq) backend.
DriverRedis Driver = "redis"
// DriverNATS selects the NATS backend.
DriverNATS Driver = "nats"
// DriverSQS selects the AWS SQS backend.
DriverSQS Driver = "sqs"
// DriverRabbitMQ selects the RabbitMQ backend.
DriverRabbitMQ Driver = "rabbitmq"
)