Versions in this module Expand all Collapse all v0 v0.1.0 Jun 28, 2015 Changes in this version + const AlienSound + const BikeSound + const BugleSound + const CashregisterSound + const ClassicalSound + const ClimbSound + const CosmicSound + const EchoSound + const EmergencyPriority + const FallingSound + const GamelanSound + const HighPriority + const IncomingSound + const IntermissionSound + const LowPriority + const LowestPriority + const MagicSound + const MechanicalSound + const NoneSound + const NormalPriority + const PersistentSound + const PianobarSound + const PushoverSound + const SirenSound + const SpacealarmSound + const TugboatSound + const UpdownSound + func Send(message *Message) error + func SendMessage(user, message string) error + func SendMessageWithRetries(user, message string, maxRetries int) error + func SendWithRetries(message *Message, maxRetries int) error + type Client struct + ApplicationToken string + HTTPClient *http.Client + var DefaultClient Client + func (c *Client) Send(message *Message) error + func (c *Client) SendMessage(user, message string) error + func (c *Client) SendMessageWithRetries(user, message string, maxRetries int) error + func (c *Client) SendWithRetries(message *Message, maxRetries int) error + type FatalError struct + Message string + StatusCode int + func (c *FatalError) Error() string + func (c *FatalError) Temporary() bool + func (c *FatalError) Timeout() bool + type Message struct + Callback string + Device string + Expire int + Message string + Priority int + Retry int + Sound string + Timestamp time.Time + Title string + URL string + URLTitle string + User string + type TemporaryError struct + Message string + StatusCode int + func (c *TemporaryError) Error() string + func (c *TemporaryError) Temporary() bool + func (c *TemporaryError) Timeout() bool