feed

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Descriptor added in v0.8.0

type Descriptor struct {
	Name string
	Url  string
}

type Feed

type Feed struct {
	*config.Feed

	Global config.GlobalOptions
	// contains filtered or unexported fields
}

func Create added in v0.7.0

func Create(parsedFeed *config.Feed, global config.GlobalOptions) (*Feed, error)

func (*Feed) Context added in v1.5.0

func (feed *Feed) Context() http.Context

func (*Feed) Descriptor added in v0.8.0

func (feed *Feed) Descriptor() Descriptor

func (*Feed) FetchSuccessful

func (feed *Feed) FetchSuccessful() bool

func (*Feed) Filter added in v0.8.0

func (feed *Feed) Filter(filter FilterFunc)

func (*Feed) Messages

func (feed *Feed) Messages() (msg.Messages, error)

func (*Feed) NeedsUpdate

func (feed *Feed) NeedsUpdate(updateTime time.Time) bool

func (*Feed) Parse added in v0.8.0

func (feed *Feed) Parse() error

func (*Feed) SetExtID added in v0.8.0

func (feed *Feed) SetExtID(extID FeedID)

type FeedID added in v0.8.0

type FeedID interface {
	String() string
}

type FilterFunc added in v0.8.0

type FilterFunc func(items []Item, ignHash, alwaysNew bool) []Item

type Item added in v0.8.0

type Item struct {
	*gofeed.Item              // access fields implicitly
	Feed         *gofeed.Feed // named explicitly to not shadow common fields with Item

	Body       string
	TextBody   string
	UpdateOnly bool

	ID uuid.UUID
	// contains filtered or unexported fields
}

func (*Item) AddReason added in v0.8.0

func (item *Item) AddReason(reason string)

func (*Item) Creator added in v0.8.0

func (item *Item) Creator() string

Creator returns the name of the creating authors (comma separated).

func (*Item) Date added in v0.8.0

func (item *Item) Date() string

func (*Item) DateParsed added in v0.8.0

func (item *Item) DateParsed() *time.Time
func (item *Item) FeedLink() string

func (*Item) Id added in v0.8.0

func (item *Item) Id() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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