handler

package
v0.0.0-...-5f4d8fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL