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. // SectionStat is sub seciont of config.
type SectionStat struct { type SectionStat struct {
Engine string `yaml:"service"` Engine string `yaml:"service"`
Redis SectionRedis `yaml:"redis"` Redis SectionRedis `yaml:"redis"`
BoltDB SectionBoltDB `yaml:"boltdb"` BoltDB SectionBoltDB `yaml:"boltdb"`
} }
@ -75,7 +75,7 @@ type SectionRedis struct {
// SectionBoltDB is sub seciont of config. // SectionBoltDB is sub seciont of config.
type SectionBoltDB struct { type SectionBoltDB struct {
Path string `yaml:"path"` Path string `yaml:"path"`
Bucket string `yaml:"bucket"` Bucket string `yaml:"bucket"`
} }

View File

@ -21,9 +21,9 @@ const (
// Stat variable for redis // Stat variable for redis
const ( const (
gorushTotalCount = "gorush-total-count" gorushTotalCount = "gorush-total-count"
gorushIosSuccess = "gorush-ios-success-count" gorushIosSuccess = "gorush-ios-success-count"
gorushIosError = "gorush-ios-error-count" gorushIosError = "gorush-ios-error-count"
gorushAndroidSuccess = "gorush-android-success-count" gorushAndroidSuccess = "gorush-android-success-count"
gorushAndroidError = "gorush-android-error-count" gorushAndroidError = "gorush-android-error-count"
) )

View File

@ -1,12 +1,12 @@
package gorush package gorush
import ( import (
"github.com/asdine/storm"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"gopkg.in/redis.v3" "gopkg.in/redis.v3"
"net/http" "net/http"
"strconv" "strconv"
"sync/atomic" "sync/atomic"
"github.com/asdine/storm"
) )
// StatusApp is app status structure // StatusApp is app status structure