proto

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Convert_WordToPdf_FullMethodName = "/convert.Convert/WordToPdf"
)
View Source
const (
	Word_Apply_FullMethodName = "/word.Word/Apply"
)

Variables

View Source
var (
	DocuValueType_name = map[int32]string{
		0: "TEXT",
		1: "IMAGE",
	}
	DocuValueType_value = map[string]int32{
		"TEXT":  0,
		"IMAGE": 1,
	}
)

Enum value maps for DocuValueType.

View Source
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)

View Source
var File_convert_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use DocuChunk.ProtoReflect.Descriptor instead.

func (*DocuChunk) GetChunks added in v0.0.5

func (x *DocuChunk) GetChunks() [][]byte

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

func (*DocuChunk) Reset added in v0.0.4

func (x *DocuChunk) Reset()

func (*DocuChunk) String added in v0.0.4

func (x *DocuChunk) String() string

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

Deprecated: Use DocuValue.ProtoReflect.Descriptor instead.

func (*DocuValue) GetKey added in v0.0.5

func (x *DocuValue) GetKey() string

func (*DocuValue) GetType added in v0.0.5

func (x *DocuValue) GetType() DocuValueType

func (*DocuValue) GetValue added in v0.0.5

func (x *DocuValue) GetValue() string

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

func (*DocuValue) Reset added in v0.0.5

func (x *DocuValue) Reset()

func (*DocuValue) String added in v0.0.5

func (x *DocuValue) String() string

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) 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 (DocuValueType) String added in v0.0.5

func (x DocuValueType) String() string

func (DocuValueType) Type added in v0.0.5

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"`
	Footer []*DocuValue `protobuf:"bytes,3,rep,name=footer,proto3" json:"footer,omitempty"`
	// contains filtered or unexported fields
}

func (*DocuWord) Descriptor deprecated added in v0.0.4

func (*DocuWord) Descriptor() ([]byte, []int)

Deprecated: Use DocuWord.ProtoReflect.Descriptor instead.

func (*DocuWord) GetBody added in v0.0.4

func (x *DocuWord) GetBody() []*DocuValue

func (*DocuWord) GetFooter added in v0.0.5

func (x *DocuWord) GetFooter() []*DocuValue

func (*DocuWord) GetHeader added in v0.0.4

func (x *DocuWord) GetHeader() []*DocuValue

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

func (*DocuWord) Reset added in v0.0.4

func (x *DocuWord) Reset()

func (*DocuWord) String added in v0.0.4

func (x *DocuWord) String() string

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

type UnimplementedWordServer

type UnimplementedWordServer struct {
}

UnimplementedWordServer must be embedded to have forward compatible implementations.

func (UnimplementedWordServer) Apply

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
}

Jump to

Keyboard shortcuts

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