Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Browsers = [...]Browser{ {"Chrome", *regexp.MustCompile("https://(android|fcm).googleapis.com/(gcm|fcm)/send/"), *regexp.MustCompile("<TITLE>(.*)</TITLE>")}, {"Firefox", *regexp.MustCompile("https://updates.push.services.mozilla.com/wpush"), *regexp.MustCompile("\\\"errno\\\":\\s(\\d+)")}, }
Browsers available
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct { Subscription *Subscription `json:"subscription,omitempty"` Payload *map[string]interface{} `json:"payload,omitempty"` TimeToLive *uint `json:"time_to_live,omitempty"` }
Notification type
type Subscription ¶
type Subscription struct { Endpoint string `json:"endpoint,omitempty"` Key string `json:"key,omitempty"` Auth string `json:"auth,omitempty"` }
Subscription type
Click to show internal directories.
Click to hide internal directories.