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