diff --git a/gorush/config.go b/gorush/config.go index dc6f85a..7511ee7 100644 --- a/gorush/config.go +++ b/gorush/config.go @@ -61,8 +61,8 @@ type SectionLog struct { // SectionStat is sub seciont of config. type SectionStat struct { - Engine string `yaml:"service"` - Redis SectionRedis `yaml:"redis"` + Engine string `yaml:"service"` + Redis SectionRedis `yaml:"redis"` BoltDB SectionBoltDB `yaml:"boltdb"` } @@ -75,7 +75,7 @@ type SectionRedis struct { // SectionBoltDB is sub seciont of config. type SectionBoltDB struct { - Path string `yaml:"path"` + Path string `yaml:"path"` Bucket string `yaml:"bucket"` } diff --git a/gorush/const.go b/gorush/const.go index dc3fb6f..28f5ca1 100644 --- a/gorush/const.go +++ b/gorush/const.go @@ -21,9 +21,9 @@ const ( // Stat variable for redis const ( - gorushTotalCount = "gorush-total-count" - gorushIosSuccess = "gorush-ios-success-count" - gorushIosError = "gorush-ios-error-count" + gorushTotalCount = "gorush-total-count" + gorushIosSuccess = "gorush-ios-success-count" + gorushIosError = "gorush-ios-error-count" gorushAndroidSuccess = "gorush-android-success-count" - gorushAndroidError = "gorush-android-error-count" + gorushAndroidError = "gorush-android-error-count" ) diff --git a/gorush/status.go b/gorush/status.go index 27dd7d9..10fa817 100644 --- a/gorush/status.go +++ b/gorush/status.go @@ -1,12 +1,12 @@ package gorush import ( + "github.com/asdine/storm" "github.com/gin-gonic/gin" "gopkg.in/redis.v3" "net/http" "strconv" "sync/atomic" - "github.com/asdine/storm" ) // StatusApp is app status structure