mirror of
https://github.com/hibiken/asynq.git
synced 2025-09-19 05:17:30 +08:00
Add Queues method to Inspector
This commit is contained in:
@@ -27,6 +27,11 @@ func NewInspector(r RedisConnOpt) *Inspector {
|
||||
}
|
||||
}
|
||||
|
||||
// Queues returns a list of all queue names.
|
||||
func (i *Inspector) Queues() ([]string, error) {
|
||||
return i.rdb.AllQueues()
|
||||
}
|
||||
|
||||
// Stats represents a state of queues at a certain time.
|
||||
type Stats struct {
|
||||
// Name of the queue.
|
||||
|
Reference in New Issue
Block a user