Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNamespace ¶
func GetHashes ¶
func GetHashes(pairs []ItemHashPair) []string
func ItemHashKey ¶
ItemHashKey creates a deterministic ID based on the item's attributes.
func SetExtension ¶
Types ¶
type Feeds ¶
type Feeds interface {
ParseFeed(ctx context.Context, content io.Reader) (*gofeed.Feed, error)
RenderFeed(ctx context.Context, feed *gofeed.Feed) (string, error)
FilterItems(ctx context.Context, feed *gofeed.Feed, domains []string) []ItemHashPair
RenderItem(ctx context.Context, item *gofeed.Item) (string, error)
ExtractCategories(item *gofeed.Item) []string
}
type ItemHashPair ¶
ItemHashPair holds a feed item and its generated key
Click to show internal directories.
Click to hide internal directories.