Versions in this module Expand all Collapse all v0 v0.0.1 Nov 17, 2018 Changes in this version + func GenerateVAPIDKeys() (privateKey, publicKey string, err error) + func SendNotification(message []byte, s *Subscription, options *Options) (*http.Response, error) + type HTTPClient interface + Do func(*http.Request) (*http.Response, error) + type Keys struct + Auth string + P256dh string + type Options struct + HTTPClient HTTPClient + LegacyGCMAuthorization string + Subscriber string + TTL int + Topic string + Urgency Urgency + VAPIDPrivateKey string + type Subscription struct + Endpoint string + Keys Keys + type Urgency string + const UrgencyHigh + const UrgencyLow + const UrgencyNormal + const UrgencyVeryLow