rss

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGUID added in v1.0.0

func GenerateGUID(from string) string

func GenerateGUIDForItem added in v1.0.0

func GenerateGUIDForItem(item *gofeed.Item) string

Types

type Client added in v1.0.0

type Client struct {
	Feed         *gofeed.Feed
	Items        *[]*gofeed.Item
	ItemsCrawled []crawler.ItemCrawled

	UpdatedAt time.Time
	// contains filtered or unexported fields
}

func NewClient added in v1.0.0

func NewClient(
	feedUrl string,
	username string,
	password string,
	crawl bool,
	exceptItemGUIDs []string,
	logger *zap.Logger,
) (*Client, []error)

func (*Client) SetFeed added in v1.0.0

func (c *Client) SetFeed(
	feedLink string,
	username string,
	password string,
	dbFeedTmp *ent.FeedCreate,
) *ent.FeedCreate

func (*Client) SetItem added in v1.0.0

func (c *Client) SetItem(
	feedID uuid.UUID,
	idx int,
	dbItemTemp *ent.ItemCreate,
) *ent.ItemCreate

func (*Client) Sync added in v1.0.0

func (c *Client) Sync(crawl bool) []error

Jump to

Keyboard shortcuts

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