Documentation ¶
Index ¶
- type Service
- func (s *Service) CreateFeed(ctx context.Context, reader io.Reader, url *url.URL) (*feeds.Feed, error)
- func (s *Service) GetFeed(ctx context.Context, request *feeds.GetFeedRequest) (*feeds.Feed, error)
- func (s *Service) ListFeeds(ctx context.Context, request *feeds.ListFeedsRequest) (*feeds.ListFeedsResponse, error)
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) ListFeeds ¶
func (s *Service) ListFeeds(ctx context.Context, request *feeds.ListFeedsRequest) (*feeds.ListFeedsResponse, error)
ListFeeds returns a list of feeds.
Click to show internal directories.
Click to hide internal directories.