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