Documentation
¶
Index ¶
Constants ¶
View Source
const ( TAG = "tag" TAG_AND = "tag_and" TAG_NOT = "tag_not" ALIAS = "alias" REGISTRATION_ID = "registration_id" SEGMENT = "segment" ABTEST = "abtest" )
View Source
const ( ANDROID = "android" IOS = "ios" QUICKAPP = "quickapp" WINDOWSPHONE = "winphone" ALL = "all" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audience ¶
type Audience struct {
Object interface{}
// contains filtered or unexported fields
}
func (*Audience) SetRegistrationId ¶
type Message ¶
type Message struct {
MsgContent string `json:"msg_content"`
Title string `json:"title,omitempty"`
ContentType string `json:"content_type,omitempty"`
Extras map[string]interface{} `json:"extras,omitempty"`
}
func (*Message) SetContentType ¶
func (*Message) SetMsgContent ¶
type Notification ¶
type Notification struct {
Alert string `json:"alert,omitempty"`
Android Android `json:"android,omitempty"`
IOS Ios `json:"ios,omitempty"`
}
func (*Notification) SetAlert ¶
func (n *Notification) SetAlert(alert, pushIntent string)
func (*Notification) SetAndroidIntent ¶
func (n *Notification) SetAndroidIntent(pushIntent string)
type Options ¶
type Options struct {
ApnsProduction bool `json:"apns_production"`
}
func (*Options) SetApnsProduction ¶
type Platform ¶
type Platform struct {
Os interface{}
// contains filtered or unexported fields
}
func (*Platform) SetAndroid ¶
func (*Platform) SetPlatform ¶
func (*Platform) SetQuickApp ¶
func (*Platform) SetWindowsPhone ¶
type PushObj ¶
type PushObj struct {
Platform interface{} `json:"platform"`
Audience interface{} `json:"audience"`
Notification interface{} `json:"notification,omitempty"`
Message interface{} `json:"message,omitempty"`
Options interface{} `json:"options,omitempty"`
}
func (*PushObj) SetAudience ¶
func (*PushObj) SetMessage ¶
func (*PushObj) SetNotification ¶
func (p *PushObj) SetNotification(no *Notification)
func (*PushObj) SetOptions ¶
func (*PushObj) SetPlatform ¶
Click to show internal directories.
Click to hide internal directories.