pushover

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pushover

type Pushover struct {
	Name       string `yaml:"name"`
	Enabled    bool   `yaml:"enabled"`
	AppToken   string `yaml:"app_token"`
	UserToken  string `yaml:"user_token"`
	DeviceName string `yaml:"device_name"`
}

func New

func New(name string, path string) (*Pushover, error)

func (*Pushover) SendGlance

func (p *Pushover) SendGlance(title string, text string, subText string, count int, percent int) (*po.Response, error)

func (*Pushover) SendGlanceCountOnly

func (p *Pushover) SendGlanceCountOnly(count int) (*po.Response, error)

func (*Pushover) SendGlanceTextOnly

func (p *Pushover) SendGlanceTextOnly(title string, text string, subText string) (*po.Response, error)

func (*Pushover) SendMessage

func (p *Pushover) SendMessage(message string) error

Jump to

Keyboard shortcuts

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