fetcher

package
v0.0.0-...-f856e3e Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher struct {
	// contains filtered or unexported fields
}

Fetcher reads the feed and extracts posts from it.

func New

func New(subscriptionModel model.SubscriptionModel) *Fetcher

New instantiates new Fetcher.

func (Fetcher) Fetch

func (f Fetcher) Fetch(ctx context.Context, fd *model.Feed, cat *model.Category) error

Fetch reads posts from the feed into subscriptions.

func (Fetcher) GetTitle

func (f Fetcher) GetTitle(ctx context.Context, URL string) (string, error)

Jump to

Keyboard shortcuts

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