Documentation ¶
Index ¶
Constants ¶
View Source
const (
PayloadMaximum = 4096
)
Variables ¶
This section is empty.
Functions ¶
func Push ¶
func Push(msg *PushMessage) error
Types ¶
type PushMessage ¶
type PushMessage struct { DeviceToken string `form:"-" json:"-" xml:"-" query:"-"` DeviceKey string `form:"device_key,omitempty" json:"device_key,omitempty" xml:"device_key,omitempty" query:"device_key,omitempty"` Category string `form:"category,omitempty" json:"category,omitempty" xml:"category,omitempty" query:"category,omitempty"` Title string `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty" query:"title,omitempty"` Body string `form:"body,omitempty" json:"body,omitempty" xml:"body,omitempty" query:"body,omitempty"` // ios notification sound(system sound please refer to http://iphonedevwiki.net/index.php/AudioServices) Sound string `form:"sound,omitempty" json:"sound,omitempty" xml:"sound,omitempty" query:"sound,omitempty"` ExtParams map[string]interface{} `form:"ext_params,omitempty" json:"ext_params,omitempty" xml:"ext_params,omitempty" query:"ext_params,omitempty"` }
Click to show internal directories.
Click to hide internal directories.