Documentation
¶
Index ¶
- type Handler
- func (h *Handler) OnAddRegexReplacement(c telebot.Context) error
- func (h *Handler) OnAddReplacement(c telebot.Context) error
- func (h *Handler) OnCheck()
- func (h *Handler) OnDeleteReplacement(c telebot.Context) error
- func (h *Handler) OnList(c telebot.Context) error
- func (h *Handler) OnListAll(c telebot.Context) error
- func (h *Handler) OnListReplacements(c telebot.Context) error
- func (h *Handler) OnStart(c telebot.Context) error
- func (h *Handler) OnSubscribe(c telebot.Context) error
- func (h *Handler) OnUnsubscribe(c telebot.Context) error
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
Bot *telebot.Bot
Config *config.Config
DB *storage.DB
Fetcher *fetcher.Fetcher
AdminID int64
}
func (*Handler) OnAddRegexReplacement ¶
func (*Handler) OnCheck ¶
func (h *Handler) OnCheck()
OnCheck is the scheduler tick. It polls only feeds that are currently due and reschedules itself after POLL_TICK. Because due-ness lives in the database, a process restart never causes a mass re-fetch (FRB037).
func (*Handler) OnDeleteReplacement ¶
Click to show internal directories.
Click to hide internal directories.