Documentation ¶
Overview ¶
Package govapid is a micro-package to generate VAPID public and private keys required for sending web push notifications, the package uses standard library dependencies only.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VAPIDKeys ¶
VAPIDKeys contains the public and private VAPID keys
func GenerateVAPID ¶
GenerateVAPID will generate public and private VAPID keys
Example ¶
VAPIDkeys, err := GenerateVAPID() if err != nil { fmt.Println(err) } //fmt.Println(VAPIDkeys.Public, VAPIDkeys.Private) fmt.Println(len(VAPIDkeys.Public), len(VAPIDkeys.Private))
Output: 87 43
Click to show internal directories.
Click to hide internal directories.