Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProjectName string = "flowerss" BotToken string Socks5 string TelegraphToken []string TelegraphAccountName string TelegraphAuthorName string = "flowerss-bot" TelegraphAuthorURL string // EnableTelegraph 是否启用telegraph EnableTelegraph bool = false PreviewText int = 0 DisableWebPagePreview bool = false SQLitePath string EnableMysql bool = false // UpdateInterval rss抓取间隔 UpdateInterval int = 10 // ErrorThreshold rss源抓取错误阈值 ErrorThreshold uint = 100 // MessageTpl rss更新推送模版 MessageTpl *template.Template // MessageMode telegram消息渲染模式 MessageMode tb.ParseMode // TelegramEndpoint telegram bot 服务器地址,默认为空 TelegramEndpoint string = tb.DefaultApiURL // UserAgent User-Agent UserAgent string // RunMode 运行模式 Release / Debug RunMode RunType = ReleaseMode // AllowUsers 允许使用bot的用户 AllowUsers []int64 // DBLogMode 是否打印数据库日志 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.