Versions in this module Expand all Collapse all v1 v1.1.3 Jun 27, 2020 Changes in this version + const MaxRecordSize + var ErrMaxPadExceeded = errors.New("payload has exceeded the maximum length") type Options + RecordSize uint32 + VAPIDPublicKey string + type Web struct + func New(sub Subscription, opts Options) *Web + func (s *Web) Encrypt(message []byte, options Options) (*http.Request, error) 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