update config struct

This commit is contained in:
Nam Huynh 2021-10-18 14:42:07 +07:00
parent ae3e595b51
commit fcdcaaaa3c
1 changed files with 17 additions and 10 deletions

View File

@ -3,18 +3,25 @@ package queue
// Config ...
type Config struct {
// For message queue
Redis struct {
URL string
Password string
}
Redis ConfigRedis
// Priority to process task, eg: Critical 6, Default 3, Low 1
// Using for server only
// https://github.com/hibiken/asynq/wiki/Queue-Priority
Concurrency int
Priority struct {
Critical int
Default int
Low int
StrictMode bool
}
Priority ConfigPriority
}
// ConfigRedis ...
type ConfigRedis struct {
URL string
Password string
}
// ConfigPriority ...
type ConfigPriority struct {
Critical int
Default int
Low int
StrictMode bool
}