notifier

package
v0.0.0-...-dacba4f Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_TELEGRAM_ENDPOINT = "api.telegram.org"

Variables

This section is empty.

Functions

func Failure

func Failure(model config.ModelConfig, reason string)

func Success

func Success(model config.ModelConfig)

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, error)

type Notifier

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

type SES

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

func NewSES

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/itgcloud/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 NewResend

func NewResend(base *Base) *Webhook

NewResend

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

func NewSendGrid

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