Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddFeedCommand ¶
type AddFeedCommand struct {
URL string
}
type DeleteFeedCommand ¶
type DeleteFeedCommand struct {
FeedID int
}
type Repository ¶
type ServiceImpl ¶
type ServiceImpl struct { Parser Parser // contains filtered or unexported fields }
func NewService ¶
func NewService(repository Repository, parser Parser, finder Finder) *ServiceImpl
func (*ServiceImpl) AddFeed ¶
func (s *ServiceImpl) AddFeed(command *AddFeedCommand) (*Feed, error)
func (*ServiceImpl) DeleteFeed ¶
func (s *ServiceImpl) DeleteFeed(command *DeleteFeedCommand) error
func (*ServiceImpl) FetchItems ¶
func (s *ServiceImpl) FetchItems(feedID int) ([]*item.Item, error)
func (*ServiceImpl) ListFeeds ¶
func (s *ServiceImpl) ListFeeds() ([]*Feed, error)
Click to show internal directories.
Click to hide internal directories.