Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterConvertServer(s grpc.ServiceRegistrar, srv ConvertServer)
- func RegisterWordServer(s grpc.ServiceRegistrar, srv WordServer)
- type ConvertClient
- type ConvertServer
- type Convert_WordToPdfClient
- type Convert_WordToPdfServer
- type DocuChunk
- type DocuValue
- func (*DocuValue) Descriptor() ([]byte, []int)deprecated
- func (x *DocuValue) GetKey() string
- func (x *DocuValue) GetType() DocuValueType
- func (x *DocuValue) GetValue() string
- func (*DocuValue) ProtoMessage()
- func (x *DocuValue) ProtoReflect() protoreflect.Message
- func (x *DocuValue) Reset()
- func (x *DocuValue) String() string
- type DocuValueType
- func (DocuValueType) Descriptor() protoreflect.EnumDescriptor
- func (x DocuValueType) Enum() *DocuValueType
- func (DocuValueType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DocuValueType) Number() protoreflect.EnumNumber
- func (x DocuValueType) String() string
- func (DocuValueType) Type() protoreflect.EnumType
- type DocuWord
- func (*DocuWord) Descriptor() ([]byte, []int)deprecated
- func (x *DocuWord) GetBody() []*DocuValue
- func (x *DocuWord) GetFooter() []*DocuValue
- func (x *DocuWord) GetHeader() []*DocuValue
- func (*DocuWord) ProtoMessage()
- func (x *DocuWord) ProtoReflect() protoreflect.Message
- func (x *DocuWord) Reset()
- func (x *DocuWord) String() string
- type UnimplementedConvertServer
- type UnimplementedWordServer
- type UnsafeConvertServer
- type UnsafeWordServer
- type WordApplyReq
- func (*WordApplyReq) Descriptor() ([]byte, []int)deprecated
- func (x *WordApplyReq) GetDocu() *DocuChunk
- func (m *WordApplyReq) GetRequest() isWordApplyReq_Request
- func (x *WordApplyReq) GetWord() *DocuWord
- func (*WordApplyReq) ProtoMessage()
- func (x *WordApplyReq) ProtoReflect() protoreflect.Message
- func (x *WordApplyReq) Reset()
- func (x *WordApplyReq) String() string
- type WordApplyReq_Docu
- type WordApplyReq_Word
- type WordApplyRes
- type WordClient
- type WordServer
- type WordToPdfReq
- type WordToPdfRes
- type Word_ApplyClient
- type Word_ApplyServer
Constants ¶
const (
Convert_WordToPdf_FullMethodName = "/convert.Convert/WordToPdf"
)
const (
Word_Apply_FullMethodName = "/word.Word/Apply"
)
Variables ¶
var ( DocuValueType_name = map[int32]string{ 0: "TEXT", 1: "IMAGE", } DocuValueType_value = map[string]int32{ "TEXT": 0, "IMAGE": 1, } )
Enum value maps for DocuValueType.
var Convert_ServiceDesc = grpc.ServiceDesc{ ServiceName: "convert.Convert", HandlerType: (*ConvertServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "WordToPdf", Handler: _Convert_WordToPdf_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "convert.proto", }
Convert_ServiceDesc is the grpc.ServiceDesc for Convert service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_convert_proto protoreflect.FileDescriptor
var File_word_proto protoreflect.FileDescriptor
var Word_ServiceDesc = grpc.ServiceDesc{ ServiceName: "word.Word", HandlerType: (*WordServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Apply", Handler: _Word_Apply_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "word.proto", }
Word_ServiceDesc is the grpc.ServiceDesc for Word service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterConvertServer ¶ added in v0.0.6
func RegisterConvertServer(s grpc.ServiceRegistrar, srv ConvertServer)
func RegisterWordServer ¶
func RegisterWordServer(s grpc.ServiceRegistrar, srv WordServer)
Types ¶
type ConvertClient ¶ added in v0.0.6
type ConvertClient interface {
WordToPdf(ctx context.Context, opts ...grpc.CallOption) (Convert_WordToPdfClient, error)
}
ConvertClient is the client API for Convert 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 NewConvertClient ¶ added in v0.0.6
func NewConvertClient(cc grpc.ClientConnInterface) ConvertClient
type ConvertServer ¶ added in v0.0.6
type ConvertServer interface {
WordToPdf(Convert_WordToPdfServer) error
// contains filtered or unexported methods
}
ConvertServer is the server API for Convert service. All implementations must embed UnimplementedConvertServer for forward compatibility
type Convert_WordToPdfClient ¶ added in v0.0.6
type Convert_WordToPdfClient interface {
Send(*WordToPdfReq) error
Recv() (*WordToPdfRes, error)
grpc.ClientStream
}
type Convert_WordToPdfServer ¶ added in v0.0.6
type Convert_WordToPdfServer interface {
Send(*WordToPdfRes) error
Recv() (*WordToPdfReq, error)
grpc.ServerStream
}
type DocuChunk ¶ added in v0.0.4
type DocuChunk struct {
Chunks [][]byte `protobuf:"bytes,1,rep,name=chunks,proto3" json:"chunks,omitempty"`
// contains filtered or unexported fields
}
func (*DocuChunk) Descriptor
deprecated
added in
v0.0.4
func (*DocuChunk) ProtoMessage ¶ added in v0.0.4
func (*DocuChunk) ProtoMessage()
func (*DocuChunk) ProtoReflect ¶ added in v0.0.4
func (x *DocuChunk) ProtoReflect() protoreflect.Message
type DocuValue ¶ added in v0.0.5
type DocuValue struct {
Type DocuValueType `protobuf:"varint,1,opt,name=type,proto3,enum=word.DocuValueType" json:"type,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*DocuValue) Descriptor
deprecated
added in
v0.0.5
func (*DocuValue) GetType ¶ added in v0.0.5
func (x *DocuValue) GetType() DocuValueType
func (*DocuValue) ProtoMessage ¶ added in v0.0.5
func (*DocuValue) ProtoMessage()
func (*DocuValue) ProtoReflect ¶ added in v0.0.5
func (x *DocuValue) ProtoReflect() protoreflect.Message
type DocuValueType ¶ added in v0.0.5
type DocuValueType int32
const ( DocuValueType_TEXT DocuValueType = 0 DocuValueType_IMAGE DocuValueType = 1 )
func (DocuValueType) Descriptor ¶ added in v0.0.5
func (DocuValueType) Descriptor() protoreflect.EnumDescriptor
func (DocuValueType) Enum ¶ added in v0.0.5
func (x DocuValueType) Enum() *DocuValueType
func (DocuValueType) EnumDescriptor
deprecated
added in
v0.0.5
func (DocuValueType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DocuValueType.Descriptor instead.
func (DocuValueType) Number ¶ added in v0.0.5
func (x DocuValueType) Number() protoreflect.EnumNumber
func (DocuValueType) String ¶ added in v0.0.5
func (x DocuValueType) String() string
func (DocuValueType) Type ¶ added in v0.0.5
func (DocuValueType) Type() protoreflect.EnumType
type DocuWord ¶ added in v0.0.4
type DocuWord struct {
Body []*DocuValue `protobuf:"bytes,1,rep,name=body,proto3" json:"body,omitempty"`
Header []*DocuValue `protobuf:"bytes,2,rep,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
func (*DocuWord) Descriptor
deprecated
added in
v0.0.4
func (*DocuWord) ProtoMessage ¶ added in v0.0.4
func (*DocuWord) ProtoMessage()
func (*DocuWord) ProtoReflect ¶ added in v0.0.4
func (x *DocuWord) ProtoReflect() protoreflect.Message
type UnimplementedConvertServer ¶ added in v0.0.6
type UnimplementedConvertServer struct {
}
UnimplementedConvertServer must be embedded to have forward compatible implementations.
func (UnimplementedConvertServer) WordToPdf ¶ added in v0.0.6
func (UnimplementedConvertServer) WordToPdf(Convert_WordToPdfServer) error
type UnimplementedWordServer ¶
type UnimplementedWordServer struct {
}
UnimplementedWordServer must be embedded to have forward compatible implementations.
func (UnimplementedWordServer) Apply ¶
func (UnimplementedWordServer) Apply(Word_ApplyServer) error
type UnsafeConvertServer ¶ added in v0.0.6
type UnsafeConvertServer interface {
// contains filtered or unexported methods
}
UnsafeConvertServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConvertServer will result in compilation errors.
type UnsafeWordServer ¶
type UnsafeWordServer interface {
// contains filtered or unexported methods
}
UnsafeWordServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WordServer will result in compilation errors.
type WordApplyReq ¶
type WordApplyReq struct {
// Types that are assignable to Request:
//
// *WordApplyReq_Word
// *WordApplyReq_Docu
Request isWordApplyReq_Request `protobuf_oneof:"request"`
// contains filtered or unexported fields
}
func (*WordApplyReq) Descriptor
deprecated
func (*WordApplyReq) Descriptor() ([]byte, []int)
Deprecated: Use WordApplyReq.ProtoReflect.Descriptor instead.
func (*WordApplyReq) GetDocu ¶ added in v0.0.4
func (x *WordApplyReq) GetDocu() *DocuChunk
func (*WordApplyReq) GetRequest ¶ added in v0.0.4
func (m *WordApplyReq) GetRequest() isWordApplyReq_Request
func (*WordApplyReq) GetWord ¶ added in v0.0.4
func (x *WordApplyReq) GetWord() *DocuWord
func (*WordApplyReq) ProtoMessage ¶
func (*WordApplyReq) ProtoMessage()
func (*WordApplyReq) ProtoReflect ¶
func (x *WordApplyReq) ProtoReflect() protoreflect.Message
func (*WordApplyReq) Reset ¶
func (x *WordApplyReq) Reset()
func (*WordApplyReq) String ¶
func (x *WordApplyReq) String() string
type WordApplyReq_Docu ¶ added in v0.0.4
type WordApplyReq_Docu struct {
Docu *DocuChunk `protobuf:"bytes,2,opt,name=docu,proto3,oneof"`
}
type WordApplyReq_Word ¶ added in v0.0.4
type WordApplyReq_Word struct {
Word *DocuWord `protobuf:"bytes,1,opt,name=word,proto3,oneof"`
}
type WordApplyRes ¶
type WordApplyRes struct {
Docu *DocuChunk `protobuf:"bytes,1,opt,name=docu,proto3" json:"docu,omitempty"`
// contains filtered or unexported fields
}
func (*WordApplyRes) Descriptor
deprecated
func (*WordApplyRes) Descriptor() ([]byte, []int)
Deprecated: Use WordApplyRes.ProtoReflect.Descriptor instead.
func (*WordApplyRes) GetDocu ¶ added in v0.0.4
func (x *WordApplyRes) GetDocu() *DocuChunk
func (*WordApplyRes) ProtoMessage ¶
func (*WordApplyRes) ProtoMessage()
func (*WordApplyRes) ProtoReflect ¶
func (x *WordApplyRes) ProtoReflect() protoreflect.Message
func (*WordApplyRes) Reset ¶
func (x *WordApplyRes) Reset()
func (*WordApplyRes) String ¶
func (x *WordApplyRes) String() string
type WordClient ¶
type WordClient interface {
Apply(ctx context.Context, opts ...grpc.CallOption) (Word_ApplyClient, error)
}
WordClient is the client API for Word 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 NewWordClient ¶
func NewWordClient(cc grpc.ClientConnInterface) WordClient
type WordServer ¶
type WordServer interface {
Apply(Word_ApplyServer) error
// contains filtered or unexported methods
}
WordServer is the server API for Word service. All implementations must embed UnimplementedWordServer for forward compatibility
type WordToPdfReq ¶ added in v0.0.6
type WordToPdfReq struct {
Docu *DocuChunk `protobuf:"bytes,1,opt,name=docu,proto3" json:"docu,omitempty"`
// contains filtered or unexported fields
}
func (*WordToPdfReq) Descriptor
deprecated
added in
v0.0.6
func (*WordToPdfReq) Descriptor() ([]byte, []int)
Deprecated: Use WordToPdfReq.ProtoReflect.Descriptor instead.
func (*WordToPdfReq) GetDocu ¶ added in v0.0.6
func (x *WordToPdfReq) GetDocu() *DocuChunk
func (*WordToPdfReq) ProtoMessage ¶ added in v0.0.6
func (*WordToPdfReq) ProtoMessage()
func (*WordToPdfReq) ProtoReflect ¶ added in v0.0.6
func (x *WordToPdfReq) ProtoReflect() protoreflect.Message
func (*WordToPdfReq) Reset ¶ added in v0.0.6
func (x *WordToPdfReq) Reset()
func (*WordToPdfReq) String ¶ added in v0.0.6
func (x *WordToPdfReq) String() string
type WordToPdfRes ¶ added in v0.0.6
type WordToPdfRes struct {
Docu *DocuChunk `protobuf:"bytes,1,opt,name=docu,proto3" json:"docu,omitempty"`
// contains filtered or unexported fields
}
func (*WordToPdfRes) Descriptor
deprecated
added in
v0.0.6
func (*WordToPdfRes) Descriptor() ([]byte, []int)
Deprecated: Use WordToPdfRes.ProtoReflect.Descriptor instead.
func (*WordToPdfRes) GetDocu ¶ added in v0.0.6
func (x *WordToPdfRes) GetDocu() *DocuChunk
func (*WordToPdfRes) ProtoMessage ¶ added in v0.0.6
func (*WordToPdfRes) ProtoMessage()
func (*WordToPdfRes) ProtoReflect ¶ added in v0.0.6
func (x *WordToPdfRes) ProtoReflect() protoreflect.Message
func (*WordToPdfRes) Reset ¶ added in v0.0.6
func (x *WordToPdfRes) Reset()
func (*WordToPdfRes) String ¶ added in v0.0.6
func (x *WordToPdfRes) String() string
type Word_ApplyClient ¶ added in v0.0.4
type Word_ApplyClient interface {
Send(*WordApplyReq) error
Recv() (*WordApplyRes, error)
grpc.ClientStream
}
type Word_ApplyServer ¶ added in v0.0.4
type Word_ApplyServer interface {
Send(*WordApplyRes) error
Recv() (*WordApplyReq, error)
grpc.ServerStream
}