Documentation ¶
Index ¶
- type ArticleHandler
- func (handler *ArticleHandler) CreateArticle(ctx context.Context, request *pb.NewArticleRequest) (*pb.SingleArticleResponse, error)
- func (handler *ArticleHandler) CreateArticleComment(ctx context.Context, request *pb.NewCommentRequest) (*pb.SingleCommentResponse, error)
- func (handler *ArticleHandler) CreateArticleFavorite(ctx context.Context, request *pb.CreateArticleFavoriteRequest) (*pb.SingleArticleResponse, error)
- func (handler *ArticleHandler) DeleteArticle(ctx context.Context, request *pb.DeleteArticleRequest) (*emptypb.Empty, error)
- func (handler *ArticleHandler) DeleteArticleComment(ctx context.Context, request *pb.DeleteArticleCommentRequest) (*emptypb.Empty, error)
- func (handler *ArticleHandler) DeleteArticleFavorite(ctx context.Context, request *pb.DeleteArticleFavoriteRequest) (*pb.SingleArticleResponse, error)
- func (handler *ArticleHandler) GetArticle(ctx context.Context, request *pb.GetArticleRequest) (*pb.SingleArticleResponse, error)
- func (handler *ArticleHandler) GetArticleComments(ctx context.Context, request *pb.GetArticleCommentsRequest) (*pb.MultipleCommentsResponse, error)
- func (handler *ArticleHandler) GetArticles(ctx context.Context, request *pb.GetArticlesRequest) (*pb.MultipleArticlesResponse, error)
- func (handler *ArticleHandler) GetArticlesFeed(ctx context.Context, request *pb.GetArticlesFeedRequest) (*pb.MultipleArticlesResponse, error)
- func (handler *ArticleHandler) GetTags(ctx context.Context, request *emptypb.Empty) (*pb.TagsResponse, error)
- func (handler *ArticleHandler) UpdateArticle(ctx context.Context, request *pb.UpdateArticleRequest) (*pb.SingleArticleResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleHandler ¶
type ArticleHandler struct { pb.UnimplementedArticleServiceServer // contains filtered or unexported fields }
func NewArticleHandler ¶
func NewArticleHandler(articleService *service.ArticleService, tagService *service.TagService, favoriteService *service.FavoriteService, commentService *service.CommentService) *ArticleHandler
func (*ArticleHandler) CreateArticle ¶
func (handler *ArticleHandler) CreateArticle(ctx context.Context, request *pb.NewArticleRequest) (*pb.SingleArticleResponse, error)
func (*ArticleHandler) CreateArticleComment ¶
func (handler *ArticleHandler) CreateArticleComment(ctx context.Context, request *pb.NewCommentRequest) (*pb.SingleCommentResponse, error)
func (*ArticleHandler) CreateArticleFavorite ¶
func (handler *ArticleHandler) CreateArticleFavorite(ctx context.Context, request *pb.CreateArticleFavoriteRequest) (*pb.SingleArticleResponse, error)
func (*ArticleHandler) DeleteArticle ¶
func (handler *ArticleHandler) DeleteArticle(ctx context.Context, request *pb.DeleteArticleRequest) (*emptypb.Empty, error)
func (*ArticleHandler) DeleteArticleComment ¶
func (handler *ArticleHandler) DeleteArticleComment(ctx context.Context, request *pb.DeleteArticleCommentRequest) (*emptypb.Empty, error)
func (*ArticleHandler) DeleteArticleFavorite ¶
func (handler *ArticleHandler) DeleteArticleFavorite(ctx context.Context, request *pb.DeleteArticleFavoriteRequest) (*pb.SingleArticleResponse, error)
func (*ArticleHandler) GetArticle ¶
func (handler *ArticleHandler) GetArticle(ctx context.Context, request *pb.GetArticleRequest) (*pb.SingleArticleResponse, error)
func (*ArticleHandler) GetArticleComments ¶
func (handler *ArticleHandler) GetArticleComments(ctx context.Context, request *pb.GetArticleCommentsRequest) (*pb.MultipleCommentsResponse, error)
func (*ArticleHandler) GetArticles ¶
func (handler *ArticleHandler) GetArticles(ctx context.Context, request *pb.GetArticlesRequest) (*pb.MultipleArticlesResponse, error)
func (*ArticleHandler) GetArticlesFeed ¶
func (handler *ArticleHandler) GetArticlesFeed(ctx context.Context, request *pb.GetArticlesFeedRequest) (*pb.MultipleArticlesResponse, error)
func (*ArticleHandler) GetTags ¶
func (handler *ArticleHandler) GetTags(ctx context.Context, request *emptypb.Empty) (*pb.TagsResponse, error)
func (*ArticleHandler) UpdateArticle ¶
func (handler *ArticleHandler) UpdateArticle(ctx context.Context, request *pb.UpdateArticleRequest) (*pb.SingleArticleResponse, error)
Click to show internal directories.
Click to hide internal directories.