Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrGetTagFailed = errcode.NewError(200101, "获取标签失败")
ErrGetTagFailed error fetching tags
Functions ¶
This section is empty.
Types ¶
type GreeterService ¶
type GreeterService struct {
pbgen.UnimplementedGreeterServer
}
GreeterService provides a Greeter service
func NewGreeterService ¶
func NewGreeterService() *GreeterService
NewGreeterService creates a new Greeter service
func (*GreeterService) Greet ¶
func (s *GreeterService) Greet(ctx context.Context, req *pbgen.GreetRequest) (*pbgen.GreetResponse, error)
Greet gives a Greeter reply
func (*GreeterService) GreetRecord ¶
func (s *GreeterService) GreetRecord(stream pbgen.Greeter_GreetRecordServer) error
GreetRecord send greet reply from client stream
func (*GreeterService) GreetStream ¶
func (s *GreeterService) GreetStream(req *pbgen.GreetRequest, stream pbgen.Greeter_GreetStreamServer) error
GreetStream gives a stream Greeter reply
type TagService ¶
type TagService struct {
pbgen.UnimplementedTagServiceServer
}
TagService provides a Tag service
func NewTagService ¶
func NewTagService() *TagService
NewTagService creates a new TagService instance
func (*TagService) GetTags ¶
func (t *TagService) GetTags(ctx context.Context, req *pbgen.GetTagsRequest) (*pbgen.GetTagsReply, error)
GetTags return list of tags
Click to show internal directories.
Click to hide internal directories.