Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PushPayload ¶
type PushPayload struct {
Title string `json:"title"`
Body string `json:"body"`
Session string `json:"session"`
Window int `json:"window,omitempty"`
Tool string `json:"tool"`
Status string `json:"status"`
}
PushPayload is the JSON sent to the service worker
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender listens for tool events and sends push notifications
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages push notification subscriptions in memory
func (*Store) All ¶
func (s *Store) All() []*wp.Subscription
All returns a snapshot of all current subscriptions
Click to show internal directories.
Click to hide internal directories.