bot

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 NewBot

func NewBot(core *core.Core) *Bot

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

func (b *Bot) BroadcastSourceError(source *model.Source)

BroadcastSourceError send fetcher update error message to subscribers

func (*Bot) Run

func (b *Bot) Run() error

func (*Bot) SourceUpdate

func (b *Bot) SourceUpdate(
	source *model.Source, newContents []*model.Content, subscribes []*model.Subscribe,
)

func (*Bot) SourceUpdateError

func (b *Bot) SourceUpdateError(source *model.Source)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL