Create Inspector

This commit is contained in:
Ken Hibino
2019-12-01 07:59:52 -08:00
parent 57838600ef
commit 9c2d2a612d
4 changed files with 170 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
package asynq
import "github.com/google/uuid"
import (
"time"
"github.com/google/uuid"
)
/*
TODOs:
@@ -57,3 +61,13 @@ type RedisConfig struct {
// DB specifies which redis database to select.
DB int
}
// Stats represents a state of queues at a certain time.
type Stats struct {
Queued int
InProgress int
Scheduled int
Retry int
Dead int
Timestamp time.Time
}