Documentation ¶
Index ¶
- Variables
- func NewConfigSite() *shared.ConfigSite
- func StartApiServer()
- type DigestFeed
- type DigestOptions
- type Feed
- type FeedHooks
- type FeedItemTmpl
- type Fetcher
- func (f *Fetcher) Fetch(fp *gofeed.Parser, url string, feedItems []*db.FeedItem) (*Feed, error)
- func (f *Fetcher) FetchAll(urls []string, inlineContent bool, postID string) (*MsgBody, error)
- func (f *Fetcher) Loop()
- func (f *Fetcher) ParseURL(fp *gofeed.Parser, url string) (*gofeed.Feed, error)
- func (f *Fetcher) PrintHtml(feedTmpl *DigestFeed) (string, error)
- func (f *Fetcher) PrintText(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 string, subject string, msg *MsgBody) error
- func (f *Fetcher) Validate(lastDigest *time.Time, parsed *shared.ListParsedText) error
- type MsgBody
- type UserAgentTransport
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 Options DigestOptions }
type DigestOptions ¶ added in v1.1.3
type DigestOptions struct {
InlineContent bool
}
type FeedHooks ¶
type FeedHooks struct { Cfg *shared.ConfigSite Db db.DB }
func (*FeedHooks) FileMeta ¶
func (p *FeedHooks) FileMeta(s ssh.Session, data *filehandlers.PostMetaData) error
func (*FeedHooks) FileValidate ¶
func (p *FeedHooks) FileValidate(s ssh.Session, data *filehandlers.PostMetaData) (bool, error)
type FeedItemTmpl ¶ added in v1.1.5
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func NewFetcher ¶
func NewFetcher(dbpool db.DB, cfg *shared.ConfigSite) *Fetcher
func (*Fetcher) PrintHtml ¶ added in v1.1.3
func (f *Fetcher) PrintHtml(feedTmpl *DigestFeed) (string, error)
func (*Fetcher) PrintText ¶ added in v1.1.3
func (f *Fetcher) PrintText(feedTmpl *DigestFeed) (string, error)
type UserAgentTransport ¶ added in v1.1.3
type UserAgentTransport struct {
http.RoundTripper
}
Click to show internal directories.
Click to hide internal directories.