Documentation ¶
Index ¶
Constants ¶
View Source
const ( TAG = "tag" TAGAND = "tag_and" TAGNOT = "tag_not" ALIAS = "alias" REGISTRATIONID = "registration_id" )
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 any // 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]any `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) IOSEnableMutableContent ¶
func (n *Notification) IOSEnableMutableContent()
func (*Notification) SetAlert ¶
func (n *Notification) SetAlert(alert string)
func (*Notification) SetAndroidIntent ¶
func (n *Notification) SetAndroidIntent()
func (*Notification) SetExtras ¶
func (n *Notification) SetExtras(extras Extras)
type Options ¶
type Options struct {
ApnsProduction bool `json:"apns_production"`
}
func (*Options) SetApnsProduction ¶
type Platform ¶
type Platform struct { Os any // contains filtered or unexported fields }
func (*Platform) SetAndroid ¶
func (*Platform) SetPlatform ¶
func (*Platform) SetQuickApp ¶
func (*Platform) SetWindowsPhone ¶
type PushObj ¶
type PushObj struct { Platform any `json:"platform"` Audience any `json:"audience"` Notification any `json:"notification,omitempty"` Message any `json:"message,omitempty"` Options any `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.