Documentation ¶
Index ¶
- Variables
- func NewAccountPackagePush(message tpns.Message, opts ...ReqOpt) (*http.Request, string, error)
- func NewAllPush(message tpns.Message, opts ...ReqOpt) (*http.Request, string, error)
- func NewListAccountPush(accounts []string, message tpns.Message, opts ...ReqOpt) (*http.Request, string, error)
- func NewPush(req *tpns.Request, opts ...ReqOpt) (*http.Request, string, error)
- func NewPushReq(req *tpns.Request, opts ...ReqOpt) (request *http.Request, reqBody string, err error)
- func NewSingleAccountPush(message tpns.Message, account string, opts ...ReqOpt) (*http.Request, string, error)
- func NewTagsPush(tagList []tpns.TagRule, message tpns.Message, opts ...ReqOpt) (*http.Request, string, error)
- func NewTokenPackagePush(message tpns.Message, opts ...ReqOpt) (*http.Request, string, error)
- func NewTokenPush(tokens []string, message tpns.Message, opts ...ReqOpt) (*http.Request, string, error)
- func NewUploadFileRequest(host string, file string) (*http.Request, error)
- func URL(url string)
- type ReqOpt
- func AccountList(al []string) ReqOpt
- func AccountListAdd(a string) ReqOpt
- func AddAccountPushType(accountPushType int) ReqOpt
- func AddChannelRules(ChannelRules []*tpns.ChannelDistributeRule) ReqOpt
- func AddCollapseId(collapseId int) ReqOpt
- func AddEnvironment(Environment tpns.CommonRspEnv) ReqOpt
- func AddExpireTime(expireTime int) ReqOpt
- func AddForceCollapse(forceCollapse bool) ReqOpt
- func AddLoopParam(loopParam *tpns.PushLoopParam) ReqOpt
- func AddMultiPkg(multipPkg bool) ReqOpt
- func AddPlanId(planId string) ReqOpt
- func AddPushSpeed(pushSpeed int) ReqOpt
- func AddSendTime(sendTime string) ReqOpt
- func AddTPNSOnlinePushType(onlinePushType int) ReqOpt
- func AddUploadId(UploadId int) ReqOpt
- func AndroidCustomContent(ct string) ReqOpt
- func Aps(aps *tpns.Aps) ReqOpt
- func AudienceType(at tpns.AudienceType) ReqOpt
- func Clearable(c *int) ReqOpt
- func Content(c string) ReqOpt
- func EnvDev() ReqOpt
- func EnvProd() ReqOpt
- func IconRes(ir string) ReqOpt
- func IconType(it *int) ReqOpt
- func Lights(l *int) ReqOpt
- func Message(m tpns.Message) ReqOpt
- func MessageType(t tpns.MessageType) ReqOpt
- func Ring(ring *int) ReqOpt
- func RingRaw(rr string) ReqOpt
- func Title(t string) ReqOpt
- func TokenList(tl []string) ReqOpt
- func TokenListAdd(t string) ReqOpt
- func Vibrate(v *int) ReqOpt
Constants ¶
This section is empty.
Variables ¶
View Source
var PushURL = "https://api.tpns.tencent.com/v3/push/app"
Functions ¶
func NewAccountPackagePush ¶
func NewAllPush ¶
func NewListAccountPush ¶
func NewPushReq ¶
func NewSingleAccountPush ¶
func NewTagsPush ¶
func NewTokenPackagePush ¶
func NewTokenPush ¶
func NewUploadFileRequest ¶
Types ¶
type ReqOpt ¶
func AccountList ¶
func AccountListAdd ¶
func AddAccountPushType ¶
func AddChannelRules ¶
func AddChannelRules(ChannelRules []*tpns.ChannelDistributeRule) ReqOpt
ChannelDistributeRules
func AddCollapseId ¶
func AddEnvironment ¶
func AddEnvironment(Environment tpns.CommonRspEnv) ReqOpt
func AddExpireTime ¶
func AddForceCollapse ¶
func AddMultiPkg ¶
func AddPushSpeed ¶
func AddSendTime ¶
func AddTPNSOnlinePushType ¶
func AddUploadId ¶
func AndroidCustomContent ¶
func AudienceType ¶
func AudienceType(at tpns.AudienceType) ReqOpt
func MessageType ¶
func MessageType(t tpns.MessageType) ReqOpt
func TokenListAdd ¶
Click to show internal directories.
Click to hide internal directories.