mirror of
https://github.com/elyby/chrly.git
synced 2025-05-31 14:11:51 +05:30
Попытка внедрить statsd
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
)
|
||||
|
||||
func Textures(w http.ResponseWriter, r *http.Request) {
|
||||
services.Stats.Incr("textures-requests", 1)
|
||||
username := tools.ParseUsername(mux.Vars(r)["username"])
|
||||
log.Println("request textures for username " + username)
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"github.com/mediocregopher/radix.v2/pool"
|
||||
"github.com/streadway/amqp"
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/quipo/statsd"
|
||||
)
|
||||
|
||||
var Router *mux.Router
|
||||
@@ -13,3 +14,5 @@ var RedisPool *pool.Pool
|
||||
var RabbitMQChannel *amqp.Channel
|
||||
|
||||
var RootFolder string
|
||||
|
||||
var Stats *statsd.StatsdBuffer
|
||||
|
||||
Reference in New Issue
Block a user