Documentation ¶
Index ¶
Constants ¶
View Source
const ( AppName = "daily-webhooks" AppFullName = "github.com/fantasticmao/" + AppName )
View Source
const ( WebhookEnumBark = "bark" WebhookEnumDingTalk = "dingtalk" WebhookEnumDiscard = "discard" WebhookEnumEmail = "email" )
View Source
const ( FetchTaskEnumChinesePoetry = "chinese-poetry" FetchTaskEnumExecShell = "exec-shell" FetchTaskEnumHealthCheck = "health-check" FetchTaskEnumPokemonWiki = "pokemon-wiki" FetchTaskEnumTodayInHistory = "today-in-history" )
Variables ¶
View Source
var ( Version = "unknown version" BuildTime = "unknown time" CommitHash = "unknown commit" )
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Name string `yaml:"name"` Type string `yaml:"type"` BarkCustomServer string `yaml:"bark-custom-server"` // optional, used for [bark] BarkDeviceKey string `yaml:"bark-device-key"` // optional, used for [bark] BarkCustomIcon string `yaml:"bark-custom-icon"` // optional, used for [bark] DingTalkServer string `yaml:"dingtalk-server"` // optional, used for [dingtalk] DingTalkAccessToken string `yaml:"dingtalk-access-token"` // optional, used for [dingtalk] DingTalkSecret string `yaml:"dingtalk-secret"` // optional, used for [dingtalk] EmailServer string `yaml:"email-server"` // optional, used for [email] EmailUsername string `yaml:"email-username"` // optional, used for [email] EmailPassword string `yaml:"email-password"` // optional, used for [email] EmailFrom string `yaml:"email-from"` // optional, used for [email] EmailTo string `yaml:"email-to"` // optional, used for [email] }
type Config ¶
type FetchTask ¶
type FetchTask struct { Type string `yaml:"type"` Cron string `yaml:"cron"` ChannelNames []string `yaml:"channels"` ChinesePoetryServer string `yaml:"chinese-poetry-server"` // optional, used for [chinese-poetry] ChinesePoetryToken string `yaml:"chinese-poetry-token"` // optional, used for [chinese-poetry] TodayInHistoryServer string `yaml:"today-in-history-server"` // optional, used for [today-in-history] ExecShellScript string `yaml:"exec-shell-script"` // optional, used for [exec-shell] HealthCheckApis []FetchTaskHealthCheckApi `yaml:"health-check-apis"` // optional, used for [health-check] }
type FetchTaskHealthCheckApi ¶
Click to show internal directories.
Click to hide internal directories.