pushover

package
v0.0.0-...-3483cc1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const PushoverIconsURLFmt = "https://api.pushover.net/icons/%s.png"

Variables

This section is empty.

Functions

This section is empty.

Types

type Pushover

type Pushover struct {
	// contains filtered or unexported fields
}

func (*Pushover) Cleanup

func (src *Pushover) Cleanup()

func (*Pushover) Setup

func (src *Pushover) Setup(ibx chan inbox.Message, opts interface{}) error

func (*Pushover) Start

func (src *Pushover) Start() (int, error)

type PushoverMessage

type PushoverMessage struct {
	ID      int    `json:"id"`
	IDstr   string `json:"id_str"`
	UMID    int    `json:"umid"`
	UMIDstr string `json:"umid_str"`
	AID     int    `json:"aid"`
	AIDstr  string `json:"aid_str"`
	App     string `json:"app"`

	Title          string `json:"title"`
	Message        string `json:"message"`
	Icon           string `json:"icon"`
	Date           int    `json:"date"`
	QueuedDate     int    `json:"queued_date"`
	DispatchedDate int    `json:"dispatched_date"`
	Priority       int    `json:"priority"`
	Sound          string `json:"sound"`
	URL            string `json:"url"`
	URLTitle       string `json:"url_title"`
	Acked          int    `json:"acked"`
	Receipt        string `json:"receipt"`
	HTML           int    `json:"html"`
}

type PushoverMessagesResponse

type PushoverMessagesResponse struct {
	Status   int               `json:"status"`
	Request  string            `json:"request"`
	Messages []PushoverMessage `json:"messages"`
}

type PushoverOptions

type PushoverOptions struct {
	DeviceID string
	Secret   string
}

type PushoverStreamReturn

type PushoverStreamReturn int
const (
	PushoverOk PushoverStreamReturn = iota
	PushoverError
	PushoverReconnectRequest
	PushoverReauthenticateRequest
	PushoverEndRequest
)

Jump to

Keyboard shortcuts

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