Versions in this module Expand all Collapse all v0 v0.2.0 Mar 17, 2024 v0.0.1 Mar 17, 2024 Changes in this version + const DefaultTTL + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type Subscription struct + Endpoint string + Keys SubscriptionKeys + type SubscriptionKeys struct + Auth string + P256DH string + type VapidDetails struct + Subject string + type VapidKeys struct + PrivateKey string + PublicKey string + func GenerateVapidKeys() (*VapidKeys, error) + type WebPushClient struct + func DefaultWebPushClient() *WebPushClient + func NewWebPushClient(httpClient HTTPClient, jwtSigner auth.WebPushJwtSigner, ...) *WebPushClient + func (c *WebPushClient) Send(payload []byte, info *WebPushInfo, options *WebPushOptions) (*http.Response, error) + type WebPushInfo struct + Subscription Subscription + VapidDetails VapidDetails + type WebPushOptions struct + TTL int + Topic string + Urgency string