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 Mysql MysqlConfig 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)
Types ¶
type MysqlConfig ¶
MysqlConfig mysql 配置
func (*MysqlConfig) GetMysqlConnectingString ¶
func (m *MysqlConfig) GetMysqlConnectingString() string
Click to show internal directories.
Click to hide internal directories.