Documentation ¶
Index ¶
- type Bot
- func (b *Bot) BroadcastNews(source *model.Source, subs []*model.Subscribe, contents []*model.Content)
- func (b *Bot) BroadcastSourceError(source *model.Source)
- func (b *Bot) Run() error
- func (b *Bot) SourceUpdate(source *model.Source, newContents []*model.Content, ...)
- func (b *Bot) SourceUpdateError(source *model.Source)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func (*Bot) BroadcastNews ¶
func (b *Bot) BroadcastNews(source *model.Source, subs []*model.Subscribe, contents []*model.Content)
BroadcastNews send new contents message to subscriber
func (*Bot) BroadcastSourceError ¶
BroadcastSourceError send fetcher update error message to subscribers
func (*Bot) SourceUpdate ¶
func (*Bot) SourceUpdateError ¶
Click to show internal directories.
Click to hide internal directories.