Versions in this module Expand all Collapse all v1 v1.1.0 Aug 2, 2019 Changes in this version + const DefaultTTL v1.0.0 Aug 1, 2019 Changes in this version + var TTL string = "86400" + func NewPushRequest(sub *Subscription, message string, token string) (*http.Request, error) + func Send(client *http.Client, sub *Subscription, message, token string) (*http.Response, error) + type ContentEncoding int + const AES128GCM + const AESGCM + func (v ContentEncoding) String() string + type EncryptionResult struct + Ciphertext []byte + Salt []byte + ServerPublicKey []byte + func Encrypt(sub *Subscription, message string, encoding ContentEncoding) (*EncryptionResult, error) + type Subscription struct + Auth []byte + Endpoint string + Key []byte + func SubscriptionFromJSON(b []byte) (*Subscription, error)