Versions in this module Expand all Collapse all v1 v1.0.1 Apr 9, 2026 v1.0.0 Apr 9, 2026 Changes in this version + const CEK_SIZE + const IKM_SIZE + const MAX_PAYLOAD_SIZE + const MAX_PLAINTEXT_SIZE + const NONCE_SIZE + const RECORD_SIZE + const SALT_SIZE + type WebPush struct + CEK []byte + Endpoint string + Nonce []byte + PublicKey *ecdh.PublicKey + Salt [SALT_SIZE]byte + func NewWebPush(sub *models.PushSubscription) (p *WebPush, err error) + func (p *WebPush) Encrypt(payload []byte) (buf []byte, err error) + func (p *WebPush) Send(payload []byte, params *request.WithWebPushParams) (res *http.Response, err error)