Documentation
¶
Index ¶
Constants ¶
const ( // NotifyInfo sends an informational notification. NotifyInfo = notify.NotifyInfo // NotifySuccess sends a success notification. NotifySuccess = notify.NotifySuccess // NotifyWarning sends a warning notification. NotifyWarning = notify.NotifyWarning // NotifyFailure sends a failure notification. NotifyFailure = notify.NotifyFailure )
Variables ¶
var ErrNoTargets = errors.New("apprise: no notification URLs configured")
ErrNoTargets is returned when Send is called without any configured URLs.
Functions ¶
func SupportedSchemas ¶
func SupportedSchemas() []string
SupportedSchemas returns the URL schemas supported by this build.
func SupportsSchema ¶
SupportsSchema reports whether schema is supported by this build.
Types ¶
type Apprise ¶
type Apprise struct {
// contains filtered or unexported fields
}
Apprise stores notification target URLs and sends messages to them.
func (*Apprise) AddAll ¶
AddAll validates and stores multiple notification target URLs. It stops on the first error, leaving any earlier valid URLs configured.
type NotifyType ¶
type NotifyType = notify.NotifyType
NotifyType identifies the semantic type of a notification.
func ParseNotifyType ¶
func ParseNotifyType(raw string) (NotifyType, bool)
ParseNotifyType parses an Apprise notification type string.
type Option ¶
type Option func(*notifyOptions)
Option configures a Send call.
func WithAttachmentMaxBytes ¶ added in v0.2.8
WithAttachmentMaxBytes sets the maximum size for each remote attachment.
func WithAttachments ¶ added in v0.2.8
WithAttachments attaches one or more local file paths or trusted attachment URLs to the notification. Attachment URLs are fetched as provided; do not pass untrusted end-user URLs.
func WithInputFormat ¶
WithInputFormat sets the source body format before target-specific conversion.
func WithNotifyType ¶
func WithNotifyType(notifyType NotifyType) Option
WithNotifyType sets the semantic notification type for a Send call.
type TargetError ¶
TargetError wraps a failure from one configured target URL.
func (*TargetError) Error ¶
func (e *TargetError) Error() string
func (*TargetError) Unwrap ¶
func (e *TargetError) Unwrap() error
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
apprise
command
|
|
|
internal
|
|
|
matrixolm
Package matrixolm implements the Olm and Megolm primitives Matrix end-to-end encryption needs, built on the standard library.
|
Package matrixolm implements the Olm and Megolm primitives Matrix end-to-end encryption needs, built on the standard library. |
|
tools/parity_report
command
|
|
|
tools/schema_dump
command
Command schema_dump prints the Go schema registry details as JSON, keyed by schema, so it can be diffed against the upstream Python details output.
|
Command schema_dump prints the Go schema registry details as JSON, keyed by schema, so it can be diffed against the upstream Python details output. |