Versions in this module Expand all Collapse all v0 v0.1.2 May 12, 2019 v0.1.1 Apr 29, 2019 v0.1.0 Apr 23, 2019 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 + 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