service

package
v0.0.0-...-1c37eff Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MIT, MIT Imports: 6 Imported by: 0

README

Service

Documentation

Index

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)

Jump to

Keyboard shortcuts

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