Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API exposes an implementation of the NewsServiceServer interface.
func (*API) ListArticles ¶
func (a *API) ListArticles(ctx context.Context, req *ListArticlesRequest) (*ListArticlesResponse, error)
ListArticles returns a collection of articles to the requester.
func (*API) StreamNewsUpdates ¶
func (a *API) StreamNewsUpdates(*StreamNewsUpdatesRequest, NewsService_StreamNewsUpdatesServer) error
StreamNewsUpdates streams live article updates to subscribers.
type BBCFeed ¶
type BBCFeed struct {
// contains filtered or unexported fields
}
BBCFeed is a news feed provided by the British Broadcasting Corporation
func NewBBCFeed ¶
NewBBCFeed creates a new news feed from the BBC.
type CBCFeed ¶
type CBCFeed struct {
// contains filtered or unexported fields
}
CBCFeed is a news feed provided by CBC News
func NewCBCFeed ¶
NewCBCFeed creates a new news feed from the CBC.
Click to show internal directories.
Click to hide internal directories.