proto

package
v0.0.0-...-a3ad43c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 9 Imported by: 0

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) Descriptor() ([]byte, []int)

Deprecated: Use CutReq.ProtoReflect.Descriptor instead.

func (*CutReq) GetMessage

func (x *CutReq) GetMessage() string

func (*CutReq) ProtoMessage

func (*CutReq) ProtoMessage()

func (*CutReq) ProtoReflect

func (x *CutReq) ProtoReflect() protoreflect.Message

func (*CutReq) Reset

func (x *CutReq) Reset()

func (*CutReq) String

func (x *CutReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CutResp.ProtoReflect.Descriptor instead.

func (*CutResp) GetWord

func (x *CutResp) GetWord() []string

func (*CutResp) ProtoMessage

func (*CutResp) ProtoMessage()

func (*CutResp) ProtoReflect

func (x *CutResp) ProtoReflect() protoreflect.Message

func (*CutResp) Reset

func (x *CutResp) Reset()

func (*CutResp) String

func (x *CutResp) String() string

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.

type SingleJiebaServer

type SingleJiebaServer interface {
	Cut(context.Context, *CutReq) (*CutResp, error)
}

SingleJiebaServer is the server API for SingleJieba service.

type UnimplementedSingleJiebaServer

type UnimplementedSingleJiebaServer struct {
}

UnimplementedSingleJiebaServer can be embedded to have forward compatible implementations.

func (*UnimplementedSingleJiebaServer) Cut

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL