Documentation ¶
Index ¶
- type Service
- func (s *Service) CreateArticle(ctx context.Context, body io.Reader, articleURL *url.URL, published *time.Time, ...) (*articles.Article, error)
- func (s *Service) DeleteArticle(ctx context.Context, request *articles.DeleteArticleRequest) (*empty.Empty, error)
- func (s *Service) GetArticle(ctx context.Context, request *articles.GetArticleRequest) (*articles.Article, error)
- func (s *Service) ListArticles(ctx context.Context, request *articles.ListArticlesRequest) (*articles.ListArticlesResponse, error)
- func (s *Service) UpdateArticle(ctx context.Context, request *articles.UpdateArticleRequest) (*articles.Article, 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 controls articles resource.
func NewService ¶
NewService returns a new articles service instance.
func (*Service) CreateArticle ¶
func (s *Service) CreateArticle( ctx context.Context, body io.Reader, articleURL *url.URL, published *time.Time, sourceID *string, ) (*articles.Article, error)
CreateArticle creates a new article.
func (*Service) DeleteArticle ¶
func (s *Service) DeleteArticle(ctx context.Context, request *articles.DeleteArticleRequest) (*empty.Empty, error)
DeleteArticle removes an article.
func (*Service) GetArticle ¶
func (s *Service) GetArticle(ctx context.Context, request *articles.GetArticleRequest) (*articles.Article, error)
GetArticle returns an article.
func (*Service) ListArticles ¶
func (s *Service) ListArticles(ctx context.Context, request *articles.ListArticlesRequest) (*articles.ListArticlesResponse, error)
ListArticles returns a list of articles.
func (*Service) UpdateArticle ¶
func (s *Service) UpdateArticle(ctx context.Context, request *articles.UpdateArticleRequest) (*articles.Article, error)
UpdateArticle updates the article.
Click to show internal directories.
Click to hide internal directories.