Documentation ¶
Overview ¶
* * Generated by go-doudou v2.0.1. * Don't edit!
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_transport_grpc_wordcloudseg_proto protoreflect.FileDescriptor
var MethodAnnotationStore = framework.AnnotationStore{}
var WordcloudSegService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wordcloud_seg.WordcloudSegService", HandlerType: (*WordcloudSegServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SegRpc", Handler: _WordcloudSegService_SegRpc_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "transport/grpc/wordcloudseg.proto", }
WordcloudSegService_ServiceDesc is the grpc.ServiceDesc for WordcloudSegService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWordcloudSegServiceServer ¶
func RegisterWordcloudSegServiceServer(s grpc.ServiceRegistrar, srv WordcloudSegServiceServer)
Types ¶
type NestedAny ¶
type NestedAny struct { NestedAny []*anypb.Any `protobuf:"bytes,1,rep,name=nestedAny,proto3" json:"nestedAny,omitempty"` // contains filtered or unexported fields }
func (*NestedAny) Descriptor
deprecated
func (*NestedAny) GetNestedAny ¶
func (*NestedAny) ProtoMessage ¶
func (*NestedAny) ProtoMessage()
func (*NestedAny) ProtoReflect ¶
func (x *NestedAny) ProtoReflect() protoreflect.Message
type SegPayload ¶
type SegPayload struct { // 文本 Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // 文本语言 // 仅支持中文和英文 // text language // only support zh and en Lang string `protobuf:"bytes,2,opt,name=lang,proto3" json:"lang,omitempty"` // contains filtered or unexported fields }
func (*SegPayload) Descriptor
deprecated
func (*SegPayload) Descriptor() ([]byte, []int)
Deprecated: Use SegPayload.ProtoReflect.Descriptor instead.
func (*SegPayload) GetLang ¶
func (x *SegPayload) GetLang() string
func (*SegPayload) GetText ¶
func (x *SegPayload) GetText() string
func (*SegPayload) ProtoMessage ¶
func (*SegPayload) ProtoMessage()
func (*SegPayload) ProtoReflect ¶
func (x *SegPayload) ProtoReflect() protoreflect.Message
func (*SegPayload) Reset ¶
func (x *SegPayload) Reset()
func (*SegPayload) String ¶
func (x *SegPayload) String() string
type SegResult ¶
type SegResult struct { WordFreq []*NestedAny `protobuf:"bytes,1,rep,name=wordFreq,proto3" json:"wordFreq,omitempty"` // contains filtered or unexported fields }
func (*SegResult) Descriptor
deprecated
func (*SegResult) GetWordFreq ¶
func (*SegResult) ProtoMessage ¶
func (*SegResult) ProtoMessage()
func (*SegResult) ProtoReflect ¶
func (x *SegResult) ProtoReflect() protoreflect.Message
type UnimplementedWordcloudSegServiceServer ¶
type UnimplementedWordcloudSegServiceServer struct { }
UnimplementedWordcloudSegServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedWordcloudSegServiceServer) SegRpc ¶
func (UnimplementedWordcloudSegServiceServer) SegRpc(context.Context, *SegPayload) (*SegResult, error)
type UnsafeWordcloudSegServiceServer ¶
type UnsafeWordcloudSegServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWordcloudSegServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WordcloudSegServiceServer will result in compilation errors.
type WordcloudSegServiceClient ¶
type WordcloudSegServiceClient interface {
SegRpc(ctx context.Context, in *SegPayload, opts ...grpc.CallOption) (*SegResult, error)
}
WordcloudSegServiceClient is the client API for WordcloudSegService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWordcloudSegServiceClient ¶
func NewWordcloudSegServiceClient(cc grpc.ClientConnInterface) WordcloudSegServiceClient
type WordcloudSegServiceServer ¶
type WordcloudSegServiceServer interface { SegRpc(context.Context, *SegPayload) (*SegResult, error) // contains filtered or unexported methods }
WordcloudSegServiceServer is the server API for WordcloudSegService service. All implementations must embed UnimplementedWordcloudSegServiceServer for forward compatibility