pushover

package
v0.0.0-...-2b5c1d7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingArgument = errors.New("pushover: missing argument")
	ErrInvalidArgument = errors.New("pushover: invalid argument type")
)

Pushover errors

Functions

This section is empty.

Types

type Params

type Params struct {
	Key       string `yaml:"key"`
	Recipient string `yaml:"recipient"`
}

Params represents the module params

func (*Params) IsValid

func (p *Params) IsValid() bool

IsValid checks if the given params are valid

type Pushover

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

Pushover stores the notification configs

func (*Pushover) Init

func (p *Pushover) Init(data []byte) error

Init implements the module interface

func (*Pushover) InitWithParams

func (p *Pushover) InitWithParams(params *Params) error

InitWithParams configures the module

func (*Pushover) Name

func (p *Pushover) Name() string

Name implements the Module interface

func (*Pushover) Notify

func (p *Pushover) Notify(i interface{}, log *logrus.Entry) error

Notify sends a notification to the recipient

func (*Pushover) Status

func (p *Pushover) Status() (polochon.ModuleStatus, error)

Status implements the Module interface

Jump to

Keyboard shortcuts

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