Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Name ... Name = "html5_notify" AttrTitle = "title" AttrUserIDS = "userIDS" AttrActions = "actions" AttrBadge = "badge" AttrBody = "body" AttrData = "data" AttrDir = "dir" AttrIcon = "icon" AttrImage = "image" AttrLang = "lang" AttrRenotify = "renotify" AttrRequireInteraction = "requireInteraction" AttrSilent = "silent" AttrTag = "tag" AttrTimestamp = "timestamp" )
Variables ¶
View Source
var F embed.FS
Functions ¶
Types ¶
type Notification ¶
type Notification struct {
Title string `json:"title"`
Options *NotificationOptions `json:"options,omitempty"`
}
type NotificationAction ¶
type NotificationOptions ¶
type NotificationOptions struct {
Actions []NotificationAction `json:"actions,omitempty"`
Badge string `json:"badge,omitempty"`
Body string `json:"body,omitempty"`
Data any `json:"data,omitempty"`
Dir string `json:"dir,omitempty"`
Icon string `json:"icon,omitempty"`
Image string `json:"image,omitempty"`
Lang string `json:"lang,omitempty"`
Renotify bool `json:"renotify,omitempty"`
RequireInteraction bool `json:"requireInteraction,omitempty"`
Silent bool `json:"silent,omitempty"`
Tag string `json:"tag,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.