[ci skip] fix golint error.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
@@ -19,5 +19,6 @@ var (
|
|||||||
LogAccess *logrus.Logger
|
LogAccess *logrus.Logger
|
||||||
// LogError is log server error log
|
// LogError is log server error log
|
||||||
LogError *logrus.Logger
|
LogError *logrus.Logger
|
||||||
|
// RushStatus is notification status
|
||||||
RushStatus StatusApp
|
RushStatus StatusApp
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// StatusApp is app status structure
|
||||||
type StatusApp struct {
|
type StatusApp struct {
|
||||||
QueueMax int `json:"queue_max"`
|
QueueMax int `json:"queue_max"`
|
||||||
QueueUsage int `json:"queue_usage"`
|
QueueUsage int `json:"queue_usage"`
|
||||||
@@ -14,16 +15,19 @@ type StatusApp struct {
|
|||||||
Android AndroidStatus `json:"android"`
|
Android AndroidStatus `json:"android"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AndroidStatus is android structure
|
||||||
type AndroidStatus struct {
|
type AndroidStatus struct {
|
||||||
PushSuccess int64 `json:"push_success"`
|
PushSuccess int64 `json:"push_success"`
|
||||||
PushError int64 `json:"push_error"`
|
PushError int64 `json:"push_error"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IosStatus is iOS structure
|
||||||
type IosStatus struct {
|
type IosStatus struct {
|
||||||
PushSuccess int64 `json:"push_success"`
|
PushSuccess int64 `json:"push_success"`
|
||||||
PushError int64 `json:"push_error"`
|
PushError int64 `json:"push_error"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// InitAppStatus for initialize app status
|
||||||
func InitAppStatus() {
|
func InitAppStatus() {
|
||||||
RushStatus.TotalCount = 0
|
RushStatus.TotalCount = 0
|
||||||
RushStatus.Ios.PushSuccess = 0
|
RushStatus.Ios.PushSuccess = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user