html5_notify

package
v0.11.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

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"

	Version = "0.0.1"
)

Variables

This section is empty.

Functions

func New

func New() plugins.Plugable

New ...

func NewMessageParams

func NewMessageParams() m.Attributes

NewMessageParams ...

func NewSettings

func NewSettings() map[string]*m.Attribute

NewSettings ...

Types

type Notification

type Notification struct {
	Title   string               `json:"title"`
	Options *NotificationOptions `json:"options,omitempty"`
}

type NotificationAction

type NotificationAction struct {
	Action string `json:"action"`
	Icon   string `json:"icon"`
	Title  string `json:"title"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL