push

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PushHelperProcess

func PushHelperProcess()

run as the application push helper

func PushHelperProcessMessage

func PushHelperProcessMessage(in io.Reader, out io.Writer) error

Types

type AppMessage

type AppMessage struct {
	Notification AppMessageNotification `json:"notification"`
}

func NewStandardPushMessage

func NewStandardPushMessage(summary string, body string) *AppMessage

creates a new PushMessage

type AppMessageCard

type AppMessageCard struct {
	Summary   string   `json:"summary"`
	Body      string   `json:"body"`
	Actions   []string `json:"actions"`
	Popup     bool     `json:"popup"`
	Persist   bool     `json:"persist"`
	Timestamp int64    `json:"timestamp"`
}

type AppMessageEmblemCounter

type AppMessageEmblemCounter struct {
	Count   int  `json:"count"`
	Visible bool `json:"visible"`
}

type AppMessageNotification

type AppMessageNotification struct {
	Tag           string                  `json:"tag"`
	Card          AppMessageCard          `json:"card"`
	Sound         bool                    `json:"sound"`
	Vibrate       bool                    `json:"vibrate"`
	EmblemCounter AppMessageEmblemCounter `json:"emblem-counter"`
}

type PushMessage

type PushMessage struct {
	Notification string `json:"notification"`
}

Jump to

Keyboard shortcuts

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