gpushover

package module
v0.0.0-...-1c72fde Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 8 Imported by: 0

README

gpushover

Go wrapper for the Pushover API.

License FOSSAStatus GoVersion PkgGoDev GoReportCard GitHubRelease LocCount GitHubCodeSize CodacyBadge LgtmAlerts CodeBeatadge CodeclimateMaintainability TickgitTODOs DeepSource


Availability

Go Modules
Source Code

Issue Tracking

Security Policy

Original Authors

License

Documentation

Overview

Package gpushover is a Go wrapper for Pushover's notification API.

Copyright (c) 2021 José Manuel Díez. <j.diezlopez@protonmail.ch> Copyright (c) 2021 Gridfinity, LLC. <admin@gridfinity.com> Copyright (c) 2014 Damian Gryski. <damian@gryski.com> Copyright (c) 2014 Adam Lazzarato.

All Rights reserved.

All use of this code is governed by the MIT license. The complete license is available in the LICENSE file.

Index

Constants

This section is empty.

Variables

View Source
var ErrorPushover = errors.New("ErrorPushover")

ErrorPushover is the generic Pushover error

Functions

This section is empty.

Types

type Notification

type Notification struct {
	Message, Title, URL, URLTitle, Sound, Device, Callback string
	Timestamp                                              time.Time
	Priority, Retry, Expire                                int
}

Notification defines the Pushover API request

type P

type P struct {
	UserKey, AppKey string
	Client          *http.Client
}

P defines the Pushover configuration

func (P) Notify

func (p P) Notify(n Notification) (*Response, error)

Notify sends the Pushover notification

type Response

type Response struct {
	Status  int
	Errors  []interface{}
	Message string
}

Response defines the Pushover API response

Jump to

Keyboard shortcuts

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