notifier

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Failure

func Failure(model config.ModelConfig, reason string) error

func Success

func Success(model config.ModelConfig) error

Types

type Base

type Base struct {
	Name string
	// contains filtered or unexported fields
}

type Mail

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

func NewMail

func NewMail(base *Base) *Mail

type Notifier

type Notifier interface {
	// contains filtered or unexported methods
}

type SES added in v1.6.0

type SES struct {
	Base
	// contains filtered or unexported fields
}

func NewSES added in v1.6.0

func NewSES(base *Base) *SES

type: ses region: us-east-1 access_key_id: your-access-key-id secret_access_key: your-secret-access-key

type Webhook

type Webhook struct {
	Base

	Service string
	// contains filtered or unexported fields
}

func NewDingtalk

func NewDingtalk(base *Base) *Webhook

func NewDiscord

func NewDiscord(base *Base) *Webhook

func NewFeishu

func NewFeishu(base *Base) *Webhook

func NewGitHub

func NewGitHub(base *Base) *Webhook

type: github url: https://github.com/gobackup/gobackup/issues/111 access_token: xxxxxxxxxx

func NewPostmark

func NewPostmark(base *Base) *Webhook

NewPostmark

type: postmark from: from@your-host.com to: your-email@xxx.com token: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

func NewSendGrid added in v1.6.0

func NewSendGrid(base *Base) *Webhook

NewSendGrid

type: sendgrid from: from@your-host.com to: your-email@xxx.com token: xxxxxxxxxxxxxxxxxxx

func NewTelegram

func NewTelegram(base *Base) *Webhook

func NewWebhook

func NewWebhook(base *Base) *Webhook

Jump to

Keyboard shortcuts

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