Documentation ¶
Index ¶
- type Server
- func (s *Server) GetArticle(ctx context.Context, in *pb.GetArticleRequest) (*pb.Article, error)
- func (s *Server) ListArticles(ctx context.Context, in *pb.ListArticlesRequest) (*pb.ListArticlesResponse, error)
- func (s *Server) SearchArticles(ctx context.Context, in *pb.SearchArticlesRequest) (*pb.SearchArticlesResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
pb.UnimplementedFetchNewsServer
}
func (*Server) GetArticle ¶
func (*Server) ListArticles ¶
func (s *Server) ListArticles(ctx context.Context, in *pb.ListArticlesRequest) (*pb.ListArticlesResponse, error)
func (*Server) SearchArticles ¶
func (s *Server) SearchArticles(ctx context.Context, in *pb.SearchArticlesRequest) (*pb.SearchArticlesResponse, error)
Click to show internal directories.
Click to hide internal directories.