Versions in this module Expand all Collapse all v1 v1.0.2 Oct 3, 2024 v1.0.1 Oct 3, 2024 Changes in this version + func WithData(ctx context.Context, data map[string]interface{}) context.Context + func WithOptions(ctx context.Context, options Options) context.Context + type Options = webpush.Options + type PushServiceError struct + StatusCode int + Subscription Subscription + type Service struct + func New(vapidPublicKey string, vapidPrivateKey string) *Service + func (s *Service) AddReceivers(subscriptions ...Subscription) + func (s *Service) Send(ctx context.Context, subject, message string) error + type Subscription = webpush.Subscription + type Urgency = webpush.Urgency + var UrgencyHigh Urgency = webpush.UrgencyHigh + var UrgencyLow Urgency = webpush.UrgencyLow + var UrgencyNormal Urgency = webpush.UrgencyNormal + var UrgencyVeryLow Urgency = webpush.UrgencyVeryLow