fix gofmt.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-04-23 15:20:42 +08:00
parent 8e79329131
commit 48c792ad43
3 changed files with 8 additions and 8 deletions

View File

@ -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"`
}

View File

@ -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"
)

View File

@ -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