Documentation
¶
Index ¶
- Variables
- type ApigwService
- func (s *ApigwService) CreateArticle(ctx context.Context, req *pb.Article) (*pb.CreateArticleReply, error)
- func (s *ApigwService) DeleteArticle(ctx context.Context, req *pb.DeleteArticleRequest) (*pb.DeleteArticleReply, error)
- func (s *ApigwService) GetArticle(ctx context.Context, req *pb.GetArticleRequest) (*pb.GetArticleReply, error)
- func (s *ApigwService) ListArticle(ctx context.Context, req *pb.ListArticleRequest) (*pb.ListArticleReply, error)
- func (s *ApigwService) Login(ctx context.Context, req *pb.LoginRequest) (*pb.ReturnTokenReply, error)
- func (s *ApigwService) Register(ctx context.Context, req *pb.RegisterRequest) (*pb.ReturnTokenReply, error)
- func (s *ApigwService) UpdateArticle(ctx context.Context, req *pb.UpdateArticleRequest) (*pb.UpdateArticleReply, error)
- type ArticleService
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewBlogService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type ApigwService ¶
type ApigwService struct {
pb.UnimplementedApigwServer
}
func NewApigwService ¶
func NewApigwService() *ApigwService
func (*ApigwService) CreateArticle ¶
func (s *ApigwService) CreateArticle(ctx context.Context, req *pb.Article) (*pb.CreateArticleReply, error)
func (*ApigwService) DeleteArticle ¶
func (s *ApigwService) DeleteArticle(ctx context.Context, req *pb.DeleteArticleRequest) (*pb.DeleteArticleReply, error)
func (*ApigwService) GetArticle ¶
func (s *ApigwService) GetArticle(ctx context.Context, req *pb.GetArticleRequest) (*pb.GetArticleReply, error)
func (*ApigwService) ListArticle ¶
func (s *ApigwService) ListArticle(ctx context.Context, req *pb.ListArticleRequest) (*pb.ListArticleReply, error)
func (*ApigwService) Login ¶
func (s *ApigwService) Login(ctx context.Context, req *pb.LoginRequest) (*pb.ReturnTokenReply, error)
func (*ApigwService) Register ¶
func (s *ApigwService) Register(ctx context.Context, req *pb.RegisterRequest) (*pb.ReturnTokenReply, error)
func (*ApigwService) UpdateArticle ¶
func (s *ApigwService) UpdateArticle(ctx context.Context, req *pb.UpdateArticleRequest) (*pb.UpdateArticleReply, error)
type ArticleService ¶
type ArticleService struct { pb.UnimplementedArtictlServiceServer // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.