withstate

package
v0.0.0-...-0be70c8 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package withstate provides a simple wrapper of the gofeed.Item, which allows simple tracking of the seen vs. unseen (new vs. old) state of an RSS feeds' entry.

State for a feed-item is stored upon the local filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedItem

type FeedItem struct {

	// Wrapped structure
	*gofeed.Item

	// Tag is a field that can be set for this feed item,
	// inside our configuration file.
	Tag string
}

FeedItem is a structure wrapping a gofeed.Item, to allow us to record state.

func (*FeedItem) HTMLContent

func (item *FeedItem) HTMLContent() (string, error)

HTMLContent provides processed HTML

func (*FeedItem) RawContent

func (item *FeedItem) RawContent() string

RawContent provides content or fallback to description

Jump to

Keyboard shortcuts

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