notify: gomodules.xyz/notify/pushover Index | Files

package pushover

import "gomodules.xyz/notify/pushover"

Index

Package Files

notify.go

Constants

const (
    PushoverApiURL = "https://api.pushover.net/1/messages.json"
    UID            = "pushover"
)

func Default Uses

func Default() (*client, error)

func Load Uses

func Load(loader envconfig.LoaderFunc) (*client, error)

func New Uses

func New(opt Options) *client

type Options Uses

type Options struct {
    Token string `envconfig:"TOKEN" required:"true"`
    // User may be either a user key or a group key.
    User    string `envconfig:"USER_KEY"`
    Message string `envconfig:"MESSAGE"`

    // Optional params
    Device    []string `envconfig:"DEVICE"`
    Title     string   `envconfig:"TITLE"`
    URL       string   `envconfig:"URL"`
    URLTitle  string   `envconfig:"URL_TITLE"`
    Priority  string   `envconfig:"PRIORITY"`
    Timestamp string   `envconfig:"TIMESTAMP"`
    Sound     string   `envconfig:"SOUND"`
}

Options allows full configuration of the message sent to the Pushover API

Package pushover imports 8 packages (graph) and is imported by 2 packages. Updated 2019-04-29. Refresh now. Tools for package owners.