Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_single_jieba_proto protoreflect.FileDescriptor
Functions ¶
func RegisterSingleJiebaServer ¶
func RegisterSingleJiebaServer(s *grpc.Server, srv SingleJiebaServer)
Types ¶
type CutReq ¶
type CutReq struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*CutReq) Descriptor
deprecated
func (*CutReq) GetMessage ¶
func (*CutReq) ProtoMessage ¶
func (*CutReq) ProtoMessage()
func (*CutReq) ProtoReflect ¶
func (x *CutReq) ProtoReflect() protoreflect.Message
type CutResp ¶
type CutResp struct { Word []string `protobuf:"bytes,1,rep,name=word,proto3" json:"word,omitempty"` // contains filtered or unexported fields }
func (*CutResp) Descriptor
deprecated
func (*CutResp) ProtoMessage ¶
func (*CutResp) ProtoMessage()
func (*CutResp) ProtoReflect ¶
func (x *CutResp) ProtoReflect() protoreflect.Message
type SingleJiebaClient ¶
type SingleJiebaClient interface {
Cut(ctx context.Context, in *CutReq, opts ...grpc.CallOption) (*CutResp, error)
}
SingleJiebaClient is the client API for SingleJieba service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSingleJiebaClient ¶
func NewSingleJiebaClient(cc grpc.ClientConnInterface) SingleJiebaClient
type SingleJiebaServer ¶
SingleJiebaServer is the server API for SingleJieba service.
type UnimplementedSingleJiebaServer ¶
type UnimplementedSingleJiebaServer struct { }
UnimplementedSingleJiebaServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.