notifiers

package
v0.0.0-...-9d10c1b Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT-0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppriseNotifier

type AppriseNotifier struct {
	URL    string
	Title  string
	Type   string
	Format string
	URLs   []string
}

func (*AppriseNotifier) Close

func (apprise *AppriseNotifier) Close() bool

func (*AppriseNotifier) Message

func (apprise *AppriseNotifier) Message(message string) bool

func (*AppriseNotifier) Open

func (apprise *AppriseNotifier) Open(configPath string) bool

type ApprisePostData

type ApprisePostData struct {
	Title  string   `json:"title"`
	Type   string   `json:"type"`
	Format string   `json:"format"`
	URLs   []string `json:"urls"`
	Body   string   `json:"body"`
}

type FileNotifier

type FileNotifier struct {
	Path string
}

func (*FileNotifier) Close

func (file *FileNotifier) Close() bool

func (*FileNotifier) Message

func (file *FileNotifier) Message(message string) bool

func (*FileNotifier) Open

func (file *FileNotifier) Open(configPath string) bool

type Notifier

type Notifier interface {
	Open(configPath string) bool
	Message(message string) bool
	Close() bool
}

type ShoutrrrNotifier

type ShoutrrrNotifier struct {
	URLs []string
}

func (*ShoutrrrNotifier) Close

func (shoutr *ShoutrrrNotifier) Close() bool

func (*ShoutrrrNotifier) Message

func (shoutr *ShoutrrrNotifier) Message(message string) bool

func (*ShoutrrrNotifier) Open

func (shoutr *ShoutrrrNotifier) Open(configPath string) bool

Jump to

Keyboard shortcuts

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