Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProjectName string = "toshiki-rssbot" BotToken string Socks5 string TelegraphToken []string TelegraphAccountName string TelegraphAuthorName string = "toshiki-rssbot" TelegraphAuthorURL string // EnableTelegraph 是否启用telegraph EnableTelegraph bool = false PreviewText int = 0 DisableWebPagePreview bool = false SQLitePath string EnableMysql bool = false // UpdateInterval RSS fetching interval UpdateInterval int = 10 // ErrorThreshold Error threshold for RSS source fetching ErrorThreshold uint = 100 // MessageTpl RSS update push template MessageTpl *template.Template // MessageMode Telegram message rendering mode MessageMode tb.ParseMode // TelegramEndpoint Telegram bot server address, default is empty TelegramEndpoint string = tb.DefaultApiURL // UserAgent User-Agent UserAgent string // RunMode Running mode Release / Debug RunMode RunType = ReleaseMode // AllowUsers Users allowed to use the bot AllowUsers []int64 // DBLogMode Whether to print database logs DBLogMode bool = false )
Functions ¶
func AppVersionInfo ¶
func AppVersionInfo() (s string)
func GetMysqlDSN ¶
func GetMysqlDSN() string
Types ¶
Click to show internal directories.
Click to hide internal directories.