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 APPLICATION_JSON + const EPOCH_GT_NOW + const HMAC_SECRET_KEY_ENV + const JSON_API + const MAILTO + const MASTER_KEY_ENV + const ORIGIN + const POSTGRES_CONNECTION_STRING_ENV + const SKIP_PADDING_ENV + const TEXT_PLAIN + const URGENCY_HIGH + const URGENCY_LOW + const URGENCY_NORMAL + const URGENCY_VERY_LOW + const VAPID_EXPIRY_DURATION_ENV + const VAPID_PRIVATE_KEY_ENV + const VAPID_SUBJECT_ENV + func CustomValidateStruct(s any) (err error) + func Decrypt(data []byte) ([]byte, error) + func Encrypt(data []byte) ([]byte, error) + func Hash(data []byte) (hashed [32]byte) + func NewCustomValidator() *validator.Validate + type EncryptedBytes []byte + func (e *EncryptedBytes) Scan(value interface{}) error + func (e EncryptedBytes) Value() (driver.Value, error) + type EncryptedString string + func (e *EncryptedString) Scan(value interface{}) error + func (e EncryptedString) Value() (driver.Value, error) + type Epoch time.Time + func (e *Epoch) Scan(value interface{}) error + func (e *Epoch) UnmarshalJSON(data []byte) (err error) + func (e Epoch) MarshalJSON() ([]byte, error) + func (e Epoch) Value() (driver.Value, error) + type EpochMillis time.Time + func (e *EpochMillis) Scan(value interface{}) error + func (e *EpochMillis) UnmarshalJSON(data []byte) (err error) + func (e EpochMillis) MarshalJSON() ([]byte, error) + func (e EpochMillis) Value() (driver.Value, error) + type HashedString string + func (h *HashedString) Compare(plain []byte) bool + func (h *HashedString) Scan(value interface{}) error + func (h HashedString) String() string + func (h HashedString) Value() (driver.Value, error) + type Recipient struct + ClientId string + RecipientId string + Subscription *RecipientSubscription + type RecipientKeys struct + Auth string + P256DH string + type RecipientSubscription struct + Endpoint string + ExpirationTime *EpochMillis + Keys *RecipientKeys + type StringerValidator interface + String func() string + Validate func() error