@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user