Versions in this module Expand all Collapse all v0 v0.0.3 Jan 14, 2021 Changes in this version type AndroidNotification + Intent struct{ ... } v0.0.2 Jan 14, 2021 Changes in this version + const ALL + const IosNotificationMaxSize + const MaxBigPushDuration + const MaxTimeToLive + const PLATFORM_ANDROID + const PLATFORM_IOS + const PLATFORM_WP + type AndroidNotification struct + BuilderId int + Sound string + Title string + UriAction string + UriActivity string + func NewAndroidNotification(alert string) *AndroidNotification + func (nc *AndroidNotification) AddExtra(key string, value interface{}) + type Audience struct + func NewAudience() *Audience + func (a *Audience) All() + func (a *Audience) SetAlias(alias []string) + func (a *Audience) SetRegistrationId(ids []string) + func (a *Audience) SetTag(tags []string) + func (a *Audience) SetTagAnd(tagAnds []string) + func (a *Audience) Value() interface{} + type IosNotification struct + Badge int + Category string + ContentAvailable bool + Sound string + func NewIosNotification(alert string) *IosNotification + func (in *IosNotification) Validate() error + func (nc *IosNotification) AddExtra(key string, value interface{}) + type Message struct + Content string + ContentType string + Extras map[string]interface{} + Title string + func NewMessage(content string) *Message + func (m *Message) AddExtra(key string, value interface{}) + func (m *Message) Validate() error + type Notification struct + Alert string + Android *AndroidNotification + Ios *IosNotification + Winphone *WinphoneNotification + func NewNotification(alert string) *Notification + func (n *Notification) Validate() error + type Options struct + ApnsProduction bool + BigPushDuration int + OverrideMsgId int64 + SendNo int + TimeToLive int + func NewOptions() *Options + func (self *Options) Validate() error + type Platform struct + func NewPlatform() *Platform + func (p *Platform) Add(platforms ...string) error + func (p *Platform) All() + func (p *Platform) Value() interface{} + type PushObject struct + Audience *Audience + Message *Message + Notification *Notification + Options *Options + Platform *Platform + func NewPushObject() *PushObject + func (po *PushObject) MarshalJSON() ([]byte, error) + func (po *PushObject) Validate() error + type PushResult struct + MsgId interface{} + SendNo string + func (pr *PushResult) FromResponse(resp *http.Response) error + func (pr *PushResult) String() string + type Validator interface + Validate func() error + type WinphoneNotification struct + OpenPage string + Title string + func NewWinphoneNotification(alert string) *WinphoneNotification + func (nc *WinphoneNotification) AddExtra(key string, value interface{})