Documentation ¶
Index ¶
- Variables
- type BlogService
- func (s *BlogService) CreateArticle(ctx context.Context, req *pb.CreateArticleRequest) (*pb.CreateArticleReply, error)
- func (s *BlogService) DeleteArticle(ctx context.Context, req *pb.DeleteArticleRequest) (*pb.DeleteArticleReply, error)
- func (s *BlogService) GetArticle(ctx context.Context, req *pb.GetArticleRequest) (*pb.GetArticleReply, error)
- func (s *BlogService) ListArticle(ctx context.Context, req *pb.ListArticleRequest) (*pb.ListArticleReply, error)
- func (s *BlogService) UpdateArticle(ctx context.Context, req *pb.UpdateArticleRequest) (*pb.UpdateArticleReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewBlogService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type BlogService ¶
type BlogService struct { pb.UnimplementedBlogServiceServer // contains filtered or unexported fields }
func NewBlogService ¶
func NewBlogService(article *biz.ArticleUsecase, logger log.Logger) *BlogService
func (*BlogService) CreateArticle ¶
func (s *BlogService) CreateArticle(ctx context.Context, req *pb.CreateArticleRequest) (*pb.CreateArticleReply, error)
func (*BlogService) DeleteArticle ¶
func (s *BlogService) DeleteArticle(ctx context.Context, req *pb.DeleteArticleRequest) (*pb.DeleteArticleReply, error)
func (*BlogService) GetArticle ¶
func (s *BlogService) GetArticle(ctx context.Context, req *pb.GetArticleRequest) (*pb.GetArticleReply, error)
func (*BlogService) ListArticle ¶
func (s *BlogService) ListArticle(ctx context.Context, req *pb.ListArticleRequest) (*pb.ListArticleReply, error)
func (*BlogService) UpdateArticle ¶
func (s *BlogService) UpdateArticle(ctx context.Context, req *pb.UpdateArticleRequest) (*pb.UpdateArticleReply, error)
Click to show internal directories.
Click to hide internal directories.