Versions in this module Expand all Collapse all v1 v1.0.1 Sep 21, 2022 v1.0.0 Sep 21, 2022 Changes in this version + type HuaweiPush struct + AppId string + AppSecret string + AutoCacheAccessToken bool + PushUrl string + TokenUrl string + func NewHuaweiPush(tokenUrl, appId, appSecret, pushUrl string, auto bool) *HuaweiPush + func (p *HuaweiPush) GetToken() (*ResToken, error) + func (p *HuaweiPush) Push(in *ReqPush) (*ResPush, error) + type ReqPush struct + AccessToken string + DeviceTokenList []string + ExpireTime string + NspSvc string + NspTs string + Payload string + Ver string + type ResPush struct + Code string + Error string + Msg string + RequestId string + type ResToken struct + AccessToken string + Error string + ErrorDescription string + ExpiresIn int + Scope string + TokenType string