update config struct
This commit is contained in:
parent
ae3e595b51
commit
fcdcaaaa3c
19
config.go
19
config.go
|
@ -3,18 +3,25 @@ package queue
|
||||||
// Config ...
|
// Config ...
|
||||||
type Config struct {
|
type Config struct {
|
||||||
// For message queue
|
// For message queue
|
||||||
Redis struct {
|
Redis ConfigRedis
|
||||||
URL string
|
|
||||||
Password string
|
|
||||||
}
|
|
||||||
// Priority to process task, eg: Critical 6, Default 3, Low 1
|
// Priority to process task, eg: Critical 6, Default 3, Low 1
|
||||||
// Using for server only
|
// Using for server only
|
||||||
// https://github.com/hibiken/asynq/wiki/Queue-Priority
|
// https://github.com/hibiken/asynq/wiki/Queue-Priority
|
||||||
Concurrency int
|
Concurrency int
|
||||||
Priority struct {
|
Priority ConfigPriority
|
||||||
|
}
|
||||||
|
|
||||||
|
// ConfigRedis ...
|
||||||
|
type ConfigRedis struct {
|
||||||
|
URL string
|
||||||
|
Password string
|
||||||
|
}
|
||||||
|
|
||||||
|
// ConfigPriority ...
|
||||||
|
type ConfigPriority struct {
|
||||||
Critical int
|
Critical int
|
||||||
Default int
|
Default int
|
||||||
Low int
|
Low int
|
||||||
StrictMode bool
|
StrictMode bool
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue