mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-03 10:42:00 +08:00
Change response shape from redis_info endpoint
This commit is contained in:
9
main.go
9
main.go
@@ -57,16 +57,19 @@ func (srv *staticFileServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
http.FileServer(http.Dir(srv.staticPath)).ServeHTTP(w, r)
|
||||
}
|
||||
|
||||
const addr = "127.0.0.1:8080"
|
||||
const (
|
||||
addr = "127.0.0.1:8080"
|
||||
redisAddr = "localhost:6379" // TODO: make this configurable
|
||||
)
|
||||
|
||||
func main() {
|
||||
inspector := asynq.NewInspector(asynq.RedisClientOpt{
|
||||
Addr: "localhost:6379",
|
||||
Addr: redisAddr,
|
||||
})
|
||||
defer inspector.Close()
|
||||
|
||||
rdb := redis.NewClient(&redis.Options{
|
||||
Addr: "localhost:6379",
|
||||
Addr: redisAddr,
|
||||
})
|
||||
defer rdb.Close()
|
||||
|
||||
|
Reference in New Issue
Block a user