[ci skip] fix golint error.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-04-15 16:59:57 +08:00
parent 3338227f57
commit e0a83faecb
2 changed files with 5 additions and 0 deletions

View File

@ -19,5 +19,6 @@ var (
LogAccess *logrus.Logger
// LogError is log server error log
LogError *logrus.Logger
// RushStatus is notification status
RushStatus StatusApp
)

View File

@ -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