Versions in this module Expand all Collapse all v0 v0.14.4 Dec 6, 2021 v0.14.2 Dec 6, 2021 Changes in this version + var ErrIncomplete = errors.New("payload does not contain necessary fields") + type APS struct + Alert Alert + Badge badge.Badge + Category string + ContentAvailable bool + MutableContent bool + Sound string + ThreadID string + func (a *APS) Map() map[string]interface{} + func (a *APS) Validate() error + func (a APS) MarshalJSON() ([]byte, error) + type Alert struct + ActionLocKey string + Body string + LaunchImage string + LocArgs []string + LocKey string + Subtitle string + Title string + TitleLocArgs []string + TitleLocKey string + type Browser struct + Alert BrowserAlert + URLArgs []string + func (p *Browser) Validate() error + func (p Browser) MarshalJSON() ([]byte, error) + type BrowserAlert struct + Action string + Body string + Title string + type MDM struct + Token string + func (p *MDM) Validate() error