Documentation ¶
Overview ¶
(Web)Push notifications and subscriptions routes and controllers logic package for the backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSubscriptionByID ¶ added in v0.44.32
GetSubscriptionByID is a static function to export to other services.
func NewSubscriptionRepository ¶ added in v0.44.32
func NewSubscriptionRepository(cache db.Cacher) models.SubscriptionRepositoryInterface
func SendNotificationToDevices ¶
func SendNotificationToDevices(opts *NotificationOpts)
Types ¶
type NotificationOpts ¶ added in v0.43.0
type SubscriptionRepository ¶ added in v0.44.32
type SubscriptionRepository struct {
// contains filtered or unexported fields
}
The implementation of pkg/models.SubscriptionRepositoryInterface.
func (*SubscriptionRepository) Delete ¶ added in v0.44.32
func (r *SubscriptionRepository) Delete(userID string) error
Click to show internal directories.
Click to hide internal directories.