feeds

package
v0.0.0-...-2610577 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is a Feeds service.

func NewService

func NewService(ctx context.Context, logger logger, sqldb *sql.DB, fetcher fetch.Fetcher, articlesService articlesService, parser parser) *Service

NewService creates feeds service.

func (*Service) CreateFeed

func (s *Service) CreateFeed(ctx context.Context, reader io.Reader, url *url.URL) (*feeds.Feed, error)

CreateFeed creates a new feeds feed, fetches articles and schedules a next update.

func (*Service) GetFeed

func (s *Service) GetFeed(ctx context.Context, request *feeds.GetFeedRequest) (*feeds.Feed, error)

GetFeed returns a feed.

func (*Service) ListFeeds

func (s *Service) ListFeeds(ctx context.Context, request *feeds.ListFeedsRequest) (*feeds.ListFeedsResponse, error)

ListFeeds returns a list of feeds.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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