chore: comments

This commit is contained in:
Fu Diwei
2024-11-25 21:22:20 +08:00
parent 124af0b76d
commit 2b93552d1d
17 changed files with 61 additions and 19 deletions

View File

@@ -11,7 +11,10 @@ import (
)
type BarkNotifierConfig struct {
// Bark 服务地址。
// 零值时默认使用官方服务器。
ServerUrl string `json:"serverUrl"`
// Bark 设备密钥。
DeviceKey string `json:"deviceKey"`
}

View File

@@ -10,8 +10,10 @@ import (
)
type DingTalkNotifierConfig struct {
// 钉钉机器人的 Token。
AccessToken string `json:"accessToken"`
Secret string `json:"secret"`
// 钉钉机器人的 Secret
Secret string `json:"secret"`
}
type DingTalkNotifier struct {

View File

@@ -13,12 +13,20 @@ import (
)
type EmailNotifierConfig struct {
SmtpHost string `json:"smtpHost"`
SmtpPort int32 `json:"smtpPort"`
SmtpTLS bool `json:"smtpTLS"`
Username string `json:"username"`
Password string `json:"password"`
SenderAddress string `json:"senderAddress"`
// SMTP 服务器地址。
SmtpHost string `json:"smtpHost"`
// SMTP 服务器端口。
// 零值时根据是否启用 TLS 决定。
SmtpPort int32 `json:"smtpPort"`
// 是否启用 TLS。
SmtpTLS bool `json:"smtpTLS"`
// 用户名。
Username string `json:"username"`
// 密码。
Password string `json:"password"`
// 发件人邮箱。
SenderAddress string `json:"senderAddress"`
// 收件人邮箱。
ReceiverAddress string `json:"receiverAddress"`
}

View File

@@ -10,6 +10,7 @@ import (
)
type LarkNotifierConfig struct {
// 飞书 Webhook 地址。
WebhookUrl string `json:"webhookUrl"`
}

View File

@@ -11,6 +11,7 @@ import (
)
type ServerChanNotifierConfig struct {
// ServerChan 服务地址。
Url string `json:"url"`
}

View File

@@ -10,8 +10,10 @@ import (
)
type TelegramNotifierConfig struct {
// Telegram API Token。
ApiToken string `json:"apiToken"`
ChatId int64 `json:"chatId"`
// Telegram Chat ID。
ChatId int64 `json:"chatId"`
}
type TelegramNotifier struct {

View File

@@ -10,6 +10,7 @@ import (
)
type WebhookNotifierConfig struct {
// Webhook URL。
Url string `json:"url"`
}