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 + func DecodeVapidKeys(privateKey string, publicKey string) (*ecdsa.PrivateKey, error) + func DecodeVapidPrivateKey(privateKey string) (*ecdsa.PrivateKey, error) + func JwtToken(signKey *ecdsa.PrivateKey, aud string, exp time.Time, subject string) (string, error) + type CachedJwtSigner struct + func NewCachedJwtSigner() *CachedJwtSigner + func (c *CachedJwtSigner) VapidHeader(endpoint *url.URL, vapidPrivate, vapidPublic, subject string) (string, error) + type SimpleJwtSigner struct + func (*SimpleJwtSigner) VapidHeader(endpoint *url.URL, vapidPrivate, vapidPublic, subject string) (string, error) + type WebPushJwtSigner interface + VapidHeader func(endpoint *url.URL, vapidPrivate, vapidPublic, subject string) (string, error)