Documentation
¶
Index ¶
- type AddFeed
- type AddFeedRequest
- type AddFeedResponse
- type GetFeeds
- type GetFeedsFeed
- type GetFeedsResponse
- type GetSubscriptionResponse
- type GetSubscriptions
- type GetSubscriptionsRequest
- type GetSubscriptionsSub
- type Subscribe
- type SubscribeRequest
- type SubscribeResponse
- type Unsubscribe
- type UnsubscribeRequest
- type UnsubscribeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddFeed ¶
type AddFeed struct {
// contains filtered or unexported fields
}
func NewAddFeed ¶
func NewAddFeed(repository rss.Repository) *AddFeed
func (*AddFeed) AddFeed ¶
func (a *AddFeed) AddFeed(req AddFeedRequest) (AddFeedResponse, error)
type AddFeedRequest ¶
type AddFeedResponse ¶
type AddFeedResponse struct {
Message string
}
type GetFeeds ¶
type GetFeeds struct {
// contains filtered or unexported fields
}
func NewGetFeeds ¶
func NewGetFeeds(repository rss.Repository) *GetFeeds
func (*GetFeeds) Get ¶
func (g *GetFeeds) Get() (GetFeedsResponse, error)
type GetFeedsFeed ¶
type GetFeedsResponse ¶
type GetFeedsResponse struct { Feeds []*GetFeedsFeed Message string }
type GetSubscriptionResponse ¶
type GetSubscriptionResponse struct { Message string Subscriptions []GetSubscriptionsSub }
type GetSubscriptions ¶
type GetSubscriptions struct {
// contains filtered or unexported fields
}
func NewGetSubscriptions ¶
func NewGetSubscriptions(repository rss.Repository) *GetSubscriptions
func (GetSubscriptions) Get ¶
func (useCase GetSubscriptions) Get(request GetSubscriptionsRequest) (GetSubscriptionResponse, error)
type GetSubscriptionsRequest ¶
type GetSubscriptionsSub ¶
type Subscribe ¶
type Subscribe struct {
// contains filtered or unexported fields
}
func NewSubscribe ¶
func NewSubscribe(repo rss.Repository) *Subscribe
func (*Subscribe) Subscribe ¶
func (s *Subscribe) Subscribe(req SubscribeRequest) (SubscribeResponse, error)
Subscribe subscribes a user to a Feed.
type SubscribeRequest ¶
type SubscribeResponse ¶
type SubscribeResponse struct {
Message string
}
type Unsubscribe ¶
type Unsubscribe struct {
// contains filtered or unexported fields
}
func NewUnsubscribe ¶
func NewUnsubscribe(repo rss.Repository) *Unsubscribe
func (Unsubscribe) Unsubscribe ¶
func (useCase Unsubscribe) Unsubscribe( request UnsubscribeRequest) (UnsubscribeResponse, error)
type UnsubscribeRequest ¶
type UnsubscribeResponse ¶
type UnsubscribeResponse struct {
Message string
}
Click to show internal directories.
Click to hide internal directories.