Documentation ¶
Index ¶
- Variables
- type GreeterService
- type TokenResult
- type WordService
- func (s *WordService) CreateWord(ctx context.Context, req *pb.CreateWordRequest) (*pb.CreateWordReply, error)
- func (s *WordService) DeleteWord(ctx context.Context, req *pb.DeleteWordRequest) (*pb.DeleteWordReply, error)
- func (s *WordService) GetAliyunNlsToken(ctx context.Context, req *pb.GetAliyunNlsTokenRequest) (*pb.GetAliyunNlsTokenReply, error)
- func (s *WordService) GetWord(ctx context.Context, req *pb.GetWordRequest) (*pb.GetWordReply, error)
- func (s *WordService) ListWord(ctx context.Context, req *pb.ListWordRequest) (*pb.ListWordReply, error)
- func (s *WordService) UpdateWord(ctx context.Context, req *pb.UpdateWordRequest) (*pb.UpdateWordReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var AliyunClient *sdk.Client
View Source
var ProviderSet = wire.NewSet(NewGreeterService, NewWordService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type GreeterService ¶
type GreeterService struct { v1.UnimplementedGreeterServer // contains filtered or unexported fields }
GreeterService is a greeter service.
func NewGreeterService ¶
func NewGreeterService(uc *biz.GreeterUsecase) *GreeterService
NewGreeterService new a greeter service.
func (*GreeterService) SayHello ¶
func (s *GreeterService) SayHello(ctx context.Context, in *v1.HelloRequest) (*v1.HelloReply, error)
SayHello implements helloworld.GreeterServer.
type TokenResult ¶
type WordService ¶
type WordService struct { pb.UnimplementedWordServiceServer // contains filtered or unexported fields }
func NewWordService ¶
func NewWordService(uc *biz.WordUsecase, logger log.Logger) *WordService
func (*WordService) CreateWord ¶
func (s *WordService) CreateWord(ctx context.Context, req *pb.CreateWordRequest) (*pb.CreateWordReply, error)
func (*WordService) DeleteWord ¶
func (s *WordService) DeleteWord(ctx context.Context, req *pb.DeleteWordRequest) (*pb.DeleteWordReply, error)
func (*WordService) GetAliyunNlsToken ¶
func (s *WordService) GetAliyunNlsToken(ctx context.Context, req *pb.GetAliyunNlsTokenRequest) (*pb.GetAliyunNlsTokenReply, error)
func (*WordService) GetWord ¶
func (s *WordService) GetWord(ctx context.Context, req *pb.GetWordRequest) (*pb.GetWordReply, error)
func (*WordService) ListWord ¶
func (s *WordService) ListWord(ctx context.Context, req *pb.ListWordRequest) (*pb.ListWordReply, error)
func (*WordService) UpdateWord ¶
func (s *WordService) UpdateWord(ctx context.Context, req *pb.UpdateWordRequest) (*pb.UpdateWordReply, error)
Click to show internal directories.
Click to hide internal directories.