Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperationRegistry ¶
type OperationRegistry struct {
// contains filtered or unexported fields
}
OperationRegistry 操作注册表
func (*OperationRegistry) Register ¶
func (r *OperationRegistry) Register(name string, op Operation)
Register 注册新的操作
type RssHandler ¶
func NewRssHandler ¶
func NewRssHandler(cfg *config.Config, bot TelegramBot, store *storage.Storage) *RssHandler
func (*RssHandler) ExponentialBackoffWithJitter ¶
func (h *RssHandler) ExponentialBackoffWithJitter(attempt int)
指数退避+随机抖动
func (*RssHandler) ProcessFeeds ¶
func (h *RssHandler) ProcessFeeds() error
func (*RssHandler) UpdateConfig ¶
func (h *RssHandler) UpdateConfig(cfg *config.Config)
type TelegramBot ¶
type TemplateProcessor ¶
type TemplateProcessor struct {
// contains filtered or unexported fields
}
TemplateProcessor 模板处理器
func NewTemplateProcessor ¶
func NewTemplateProcessor() *TemplateProcessor
NewTemplateProcessor 创建新的模板处理器
func (*TemplateProcessor) ProcessField ¶
func (p *TemplateProcessor) ProcessField(field, content string) string
ProcessField 处理模板字段
Click to show internal directories.
Click to hide internal directories.