Documentation ¶
Index ¶
- 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
- type SimpleJwtSigner
- type WebPushJwtSigner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeVapidKeys ¶
func DecodeVapidKeys(privateKey string, publicKey string) (*ecdsa.PrivateKey, error)
func DecodeVapidPrivateKey ¶
func DecodeVapidPrivateKey(privateKey string) (*ecdsa.PrivateKey, error)
Types ¶
type CachedJwtSigner ¶
type CachedJwtSigner struct {
// contains filtered or unexported fields
}
func NewCachedJwtSigner ¶
func NewCachedJwtSigner() *CachedJwtSigner
func (*CachedJwtSigner) VapidHeader ¶
Click to show internal directories.
Click to hide internal directories.