Documentation
¶
Overview ¶
Package gowebpusher helps sending push notifications to web browsers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateVAPID ¶
GenerateVAPID will generate public and private VAPID keys using ECDH protocl
Types ¶
type PushSubscription ¶
type PushSubscription struct { Endpoint string Key PushSubscriptionKey }
PushSubscription interface of the Push API provides a subscription's URL endpoint.
type PushSubscriptionKey ¶
PushSubscriptionKey represents a client public key, which can then be sent to a server and used in encrypting push message data. P256dh: 🔒 Receiver public key (‘p256dh’): The p256dh key received as part of the Subscription data. Auth: 🔑 Auth key (‘auth’): Auth key The auth key received as part of the Subscription data.
type Sender ¶
type Sender struct { PushSubscriptions []PushSubscription VAPIDPublicKey string VAPIDPrivateKey string }
Sender instance
func (*Sender) Initialize ¶
func (s *Sender) Initialize()
Initialize will set the default values of the sender instance
Click to show internal directories.
Click to hide internal directories.