Documentation ¶
Index ¶
- Variables
- func NewConfigSite() *shared.ConfigSite
- func StartApiServer()
- type DigestFeed
- type Feed
- type FeedHooks
- type FeedItem
- type Fetcher
- func (f *Fetcher) Fetch(fp *gofeed.Parser, url string, lastDigest *time.Time) (*Feed, error)
- func (f *Fetcher) FetchAll(urls []string, lastDigest *time.Time) (string, error)
- func (f *Fetcher) Loop()
- func (f *Fetcher) Print(feedTmpl *DigestFeed) (string, error)
- func (f *Fetcher) Run() error
- func (f *Fetcher) RunPost(user *db.User, post *db.Post) error
- func (f *Fetcher) RunUser(user *db.User) error
- func (f *Fetcher) SendEmail(username, email, msg string) error
- func (f *Fetcher) Validate(lastDigest *time.Time, parsed *shared.ListParsedText) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoRecentArticles = errors.New("no recent articles")
Functions ¶
func NewConfigSite ¶
func NewConfigSite() *shared.ConfigSite
func StartApiServer ¶
func StartApiServer()
Types ¶
type DigestFeed ¶
type DigestFeed struct {
Feeds []*Feed
}
type FeedHooks ¶
type FeedHooks struct { Cfg *shared.ConfigSite Db db.DB }
func (*FeedHooks) FileMeta ¶
func (p *FeedHooks) FileMeta(data *filehandlers.PostMetaData) error
func (*FeedHooks) FileValidate ¶
func (p *FeedHooks) FileValidate(data *filehandlers.PostMetaData) (bool, error)
Click to show internal directories.
Click to hide internal directories.