Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PlatFormIos constant is 1 for iOS PlatFormIos = iota + 1 // PlatFormAndroid constant is 2 for Android PlatFormAndroid // PlatFormHuawei constant is 3 for Huawei PlatFormHuawei )
View Source
const ( // SucceededPush is log block SucceededPush = "succeeded-push" // FailedPush is log block FailedPush = "failed-push" )
View Source
const ( // TotalCountKey is key name for total count of storage TotalCountKey = "gorush-total-count" // IosSuccessKey is key name or ios success count of storage /* #nosec */ IosSuccessKey = "gorush-ios-success-count" // IosErrorKey is key name or ios success error of storage IosErrorKey = "gorush-ios-error-count" // AndroidSuccessKey is key name for android success count of storage AndroidSuccessKey = "gorush-android-success-count" // AndroidErrorKey is key name for android error count of storage AndroidErrorKey = "gorush-android-error-count" // HuaweiSuccessKey is key name for huawei success count of storage HuaweiSuccessKey = "gorush-huawei-success-count" // HuaweiErrorKey is key name for huawei error count of storage HuaweiErrorKey = "gorush-huawei-error-count" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Health ¶
type Health interface { // Check returns if server is healthy or not Check(c context.Context) (bool, error) }
Health defines a health-check connection.
Click to show internal directories.
Click to hide internal directories.