Documentation
¶
Index ¶
- type DeleteFeedItemsCommand
- type FetchFeedNewItemsCommand
- type GetFeedItemsCommand
- type Item
- type ReadFeedItemsCommand
- type Repository
- type ServiceImpl
- func (s *ServiceImpl) DeleteFeedItems(command *DeleteFeedItemsCommand) error
- func (s *ServiceImpl) GetFeedItems(command *GetFeedItemsCommand) ([]*Item, error)
- func (s *ServiceImpl) GetStarredItems() ([]*Item, error)
- func (s *ServiceImpl) GetStarredItemsCount() (int, error)
- func (s *ServiceImpl) GetUnreadItems() ([]*Item, error)
- func (s *ServiceImpl) GetUnreadItemsCount() (int, error)
- func (s *ServiceImpl) ReadFeedItems(command *ReadFeedItemsCommand) error
- func (s *ServiceImpl) UnreadFeedItems(command *UnreadFeedItemsCommand) error
- func (s *ServiceImpl) UpdateItem(command *UpdateItemCommand) error
- func (s *ServiceImpl) UpsertItems(command *UpsertItemsCommand) error
- type UnreadFeedItemsCommand
- type UpdateItemCommand
- type UpsertItemsCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteFeedItemsCommand ¶
type DeleteFeedItemsCommand struct {
FeedID int
}
type FetchFeedNewItemsCommand ¶
type FetchFeedNewItemsCommand struct {
FeedID int
}
type GetFeedItemsCommand ¶
type GetFeedItemsCommand struct {
FeedID int
}
type ReadFeedItemsCommand ¶
type ReadFeedItemsCommand struct {
FeedID int
}
type Repository ¶
type Repository interface { UpsertItems(feedID int, items []*Item) error GetUnreadItems() ([]*Item, error) GetStarredItems() ([]*Item, error) GetFeedItems(feedID int) ([]*Item, error) UpdateItem(id int, starred bool, isNew bool) error ReadFeedItems(feedID int) error UnreadFeedItems(feedID int) error GetStarredItemsCount() (int, error) GetUnreadItemsCount() (int, error) DeleteFeedItems(feedID int) error }
type ServiceImpl ¶
type ServiceImpl struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repository Repository) *ServiceImpl
func (*ServiceImpl) DeleteFeedItems ¶
func (s *ServiceImpl) DeleteFeedItems(command *DeleteFeedItemsCommand) error
func (*ServiceImpl) GetFeedItems ¶
func (s *ServiceImpl) GetFeedItems(command *GetFeedItemsCommand) ([]*Item, error)
func (*ServiceImpl) GetStarredItems ¶
func (s *ServiceImpl) GetStarredItems() ([]*Item, error)
func (*ServiceImpl) GetStarredItemsCount ¶
func (s *ServiceImpl) GetStarredItemsCount() (int, error)
func (*ServiceImpl) GetUnreadItems ¶
func (s *ServiceImpl) GetUnreadItems() ([]*Item, error)
func (*ServiceImpl) GetUnreadItemsCount ¶
func (s *ServiceImpl) GetUnreadItemsCount() (int, error)
func (*ServiceImpl) ReadFeedItems ¶
func (s *ServiceImpl) ReadFeedItems(command *ReadFeedItemsCommand) error
func (*ServiceImpl) UnreadFeedItems ¶
func (s *ServiceImpl) UnreadFeedItems(command *UnreadFeedItemsCommand) error
func (*ServiceImpl) UpdateItem ¶
func (s *ServiceImpl) UpdateItem(command *UpdateItemCommand) error
func (*ServiceImpl) UpsertItems ¶
func (s *ServiceImpl) UpsertItems(command *UpsertItemsCommand) error
type UnreadFeedItemsCommand ¶
type UnreadFeedItemsCommand struct {
FeedID int
}
type UpdateItemCommand ¶
type UpsertItemsCommand ¶
Click to show internal directories.
Click to hide internal directories.