Documentation ¶
Index ¶
- func Failure(model config.ModelConfig, reason string)
- func Success(model config.ModelConfig)
- type Base
- type Mail
- type Notifier
- type SES
- type Webhook
- func NewDingtalk(base *Base) *Webhook
- func NewDiscord(base *Base) *Webhook
- func NewFeishu(base *Base) *Webhook
- func NewGitHub(base *Base) *Webhook
- func NewPostmark(base *Base) *Webhook
- func NewSendGrid(base *Base) *Webhook
- func NewSlack(base *Base) *Webhook
- func NewTelegram(base *Base) *Webhook
- func NewWebhook(base *Base) *Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Failure ¶
func Failure(model config.ModelConfig, reason string)
func Success ¶
func Success(model config.ModelConfig)
Types ¶
type Webhook ¶
func NewDingtalk ¶
func NewDiscord ¶
func NewGitHub ¶
type: github url: https://github.com/rprtr258/gobackup/issues/111 access_token: xxxxxxxxxx
func NewPostmark ¶
NewPostmark
type: postmark from: from@your-host.com to: your-email@xxx.com token: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
func NewSendGrid ¶
NewSendGrid
type: sendgrid from: from@your-host.com to: your-email@xxx.com token: xxxxxxxxxxxxxxxxxxx
func NewSlack ¶
type: slack url: https://hooks.slack.com/services/QC0UDT3L8/C58B274E5D0/pwFViFlRXon4WWxo30wevzyR
func NewTelegram ¶
func NewWebhook ¶
Click to show internal directories.
Click to hide internal directories.