Versions in this module Expand all Collapse all v0 v0.0.1 Nov 17, 2023 Changes in this version + var AllSounds = []SoundName + type ArchiveType uint8 + const ArchiveNo + const ArchiveYes + type AutomaticallyCopyType uint8 + const AutomaticallyCopyNo + const AutomaticallyCopyYes + type Client struct + func NewClient(baseURL string) *Client + func (c *Client) Push(pushRequest *PushRequest) (*PushResponse, error) + type InterruptionLevel string + const InterruptionLevelActive + const InterruptionLevelPassive + const InterruptionLevelTimeSensitive + type PushRequest struct + AutomaticallyCopy AutomaticallyCopyType + BadgeNumber int + Body string + Category string + ClickURL string + CopyContent string + Group string + IconURL string + Interruption InterruptionLevel + Key string + ShouldArchive ArchiveType + Sound SoundName + Title string + func NewPushRequest(key, title, body string) *PushRequest + type PushResponse struct + Code int + Message string + Timestamp int64 + type SoundName string + const SoundAlarm + const SoundAnticipate + const SoundBell + const SoundBirdsong + const SoundBloom + const SoundCalypso + const SoundChime + const SoundChoo + const SoundDefault + const SoundDescent + const SoundElectronic + const SoundFanfare + const SoundGlass + const SoundGoToSleep + const SoundHealthNotification + const SoundHorn + const SoundLadder + const SoundMailSent + const SoundMinuet + const SoundMultiwayInvitation + const SoundNewMail + const SoundNewsFlash + const SoundNoir + const SoundPaymentSuccess + const SoundShake + const SoundSherwoodForest + const SoundSilence + const SoundSpell + const SoundSuspense + const SoundTelegraph + const SoundTiptoes + const SoundTypewriters + const SoundUpdate