Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterPdfServiceServer(s grpc.ServiceRegistrar, srv PdfServiceServer)
- type AuthorInfo
- func (*AuthorInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorInfo) GetAddress() string
- func (x *AuthorInfo) GetFirstName() string
- func (x *AuthorInfo) GetLastName() string
- func (x *AuthorInfo) GetMiddleName() string
- func (x *AuthorInfo) GetNickname() string
- func (*AuthorInfo) ProtoMessage()
- func (x *AuthorInfo) ProtoReflect() protoreflect.Message
- func (x *AuthorInfo) Reset()
- func (x *AuthorInfo) String() string
- type PaperContent
- func (*PaperContent) Descriptor() ([]byte, []int)deprecated
- func (x *PaperContent) GetConclusion() string
- func (x *PaperContent) GetGoalMethodsDesign() string
- func (x *PaperContent) GetImages() [][]byte
- func (x *PaperContent) GetIntroduction() string
- func (x *PaperContent) GetLiterature() string
- func (x *PaperContent) GetResultDiscussion() string
- func (x *PaperContent) GetTables() []*Table
- func (*PaperContent) ProtoMessage()
- func (x *PaperContent) ProtoReflect() protoreflect.Message
- func (x *PaperContent) Reset()
- func (x *PaperContent) String() string
- type PaperMeta
- func (*PaperMeta) Descriptor() ([]byte, []int)deprecated
- func (x *PaperMeta) GetAbstract() string
- func (x *PaperMeta) GetAuthor() *AuthorInfo
- func (x *PaperMeta) GetLang() string
- func (x *PaperMeta) GetTags() []string
- func (x *PaperMeta) GetTitle() string
- func (*PaperMeta) ProtoMessage()
- func (x *PaperMeta) ProtoReflect() protoreflect.Message
- func (x *PaperMeta) Reset()
- func (x *PaperMeta) String() string
- type PdfServiceClient
- type PdfServiceServer
- type ScientificPaperRequest
- func (*ScientificPaperRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ScientificPaperRequest) GetContent() *PaperContent
- func (x *ScientificPaperRequest) GetMeta() *PaperMeta
- func (*ScientificPaperRequest) ProtoMessage()
- func (x *ScientificPaperRequest) ProtoReflect() protoreflect.Message
- func (x *ScientificPaperRequest) Reset()
- func (x *ScientificPaperRequest) String() string
- type ScientificPaperResponse
- func (*ScientificPaperResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ScientificPaperResponse) GetPages() int64
- func (x *ScientificPaperResponse) GetPdf() []byte
- func (*ScientificPaperResponse) ProtoMessage()
- func (x *ScientificPaperResponse) ProtoReflect() protoreflect.Message
- func (x *ScientificPaperResponse) Reset()
- func (x *ScientificPaperResponse) String() string
- type StringArray
- type Table
- type UnimplementedPdfServiceServer
- type UnsafePdfServiceServer
Constants ¶
const ( PdfService_MakeScientificPaper_FullMethodName = "/pp.pdf.PdfService/MakeScientificPaper" PdfService_MakeScientificPaperLatex_FullMethodName = "/pp.pdf.PdfService/MakeScientificPaperLatex" )
Variables ¶
var File_pdf_srv_pdf_proto protoreflect.FileDescriptor
var PdfService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pp.pdf.PdfService", HandlerType: (*PdfServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "MakeScientificPaper", Handler: _PdfService_MakeScientificPaper_Handler, }, { MethodName: "MakeScientificPaperLatex", Handler: _PdfService_MakeScientificPaperLatex_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pdf-srv/pdf.proto", }
PdfService_ServiceDesc is the grpc.ServiceDesc for PdfService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPdfServiceServer ¶
func RegisterPdfServiceServer(s grpc.ServiceRegistrar, srv PdfServiceServer)
Types ¶
type AuthorInfo ¶
type AuthorInfo struct { LastName string `protobuf:"bytes,1,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` MiddleName string `protobuf:"bytes,3,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` // contains filtered or unexported fields }
func (*AuthorInfo) Descriptor
deprecated
func (*AuthorInfo) Descriptor() ([]byte, []int)
Deprecated: Use AuthorInfo.ProtoReflect.Descriptor instead.
func (*AuthorInfo) GetAddress ¶
func (x *AuthorInfo) GetAddress() string
func (*AuthorInfo) GetFirstName ¶
func (x *AuthorInfo) GetFirstName() string
func (*AuthorInfo) GetLastName ¶
func (x *AuthorInfo) GetLastName() string
func (*AuthorInfo) GetMiddleName ¶
func (x *AuthorInfo) GetMiddleName() string
func (*AuthorInfo) GetNickname ¶
func (x *AuthorInfo) GetNickname() string
func (*AuthorInfo) ProtoMessage ¶
func (*AuthorInfo) ProtoMessage()
func (*AuthorInfo) ProtoReflect ¶
func (x *AuthorInfo) ProtoReflect() protoreflect.Message
func (*AuthorInfo) Reset ¶
func (x *AuthorInfo) Reset()
func (*AuthorInfo) String ¶
func (x *AuthorInfo) String() string
type PaperContent ¶
type PaperContent struct { Introduction string `protobuf:"bytes,1,opt,name=introduction,proto3" json:"introduction,omitempty"` GoalMethodsDesign string `protobuf:"bytes,2,opt,name=goal_methods_design,json=goalMethodsDesign,proto3" json:"goal_methods_design,omitempty"` ResultDiscussion string `protobuf:"bytes,3,opt,name=result_discussion,json=resultDiscussion,proto3" json:"result_discussion,omitempty"` Conclusion string `protobuf:"bytes,4,opt,name=conclusion,proto3" json:"conclusion,omitempty"` Literature string `protobuf:"bytes,5,opt,name=literature,proto3" json:"literature,omitempty"` Images [][]byte `protobuf:"bytes,6,rep,name=images,proto3" json:"images,omitempty"` Tables []*Table `protobuf:"bytes,7,rep,name=tables,proto3" json:"tables,omitempty"` // contains filtered or unexported fields }
func (*PaperContent) Descriptor
deprecated
func (*PaperContent) Descriptor() ([]byte, []int)
Deprecated: Use PaperContent.ProtoReflect.Descriptor instead.
func (*PaperContent) GetConclusion ¶
func (x *PaperContent) GetConclusion() string
func (*PaperContent) GetGoalMethodsDesign ¶
func (x *PaperContent) GetGoalMethodsDesign() string
func (*PaperContent) GetImages ¶
func (x *PaperContent) GetImages() [][]byte
func (*PaperContent) GetIntroduction ¶
func (x *PaperContent) GetIntroduction() string
func (*PaperContent) GetLiterature ¶
func (x *PaperContent) GetLiterature() string
func (*PaperContent) GetResultDiscussion ¶
func (x *PaperContent) GetResultDiscussion() string
func (*PaperContent) GetTables ¶
func (x *PaperContent) GetTables() []*Table
func (*PaperContent) ProtoMessage ¶
func (*PaperContent) ProtoMessage()
func (*PaperContent) ProtoReflect ¶
func (x *PaperContent) ProtoReflect() protoreflect.Message
func (*PaperContent) Reset ¶
func (x *PaperContent) Reset()
func (*PaperContent) String ¶
func (x *PaperContent) String() string
type PaperMeta ¶
type PaperMeta struct { Author *AuthorInfo `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Abstract string `protobuf:"bytes,3,opt,name=abstract,proto3" json:"abstract,omitempty"` Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` Lang string `protobuf:"bytes,5,opt,name=lang,proto3" json:"lang,omitempty"` // contains filtered or unexported fields }
func (*PaperMeta) Descriptor
deprecated
func (*PaperMeta) GetAbstract ¶
func (*PaperMeta) GetAuthor ¶
func (x *PaperMeta) GetAuthor() *AuthorInfo
func (*PaperMeta) ProtoMessage ¶
func (*PaperMeta) ProtoMessage()
func (*PaperMeta) ProtoReflect ¶
func (x *PaperMeta) ProtoReflect() protoreflect.Message
type PdfServiceClient ¶
type PdfServiceClient interface { MakeScientificPaper(ctx context.Context, in *ScientificPaperRequest, opts ...grpc.CallOption) (*ScientificPaperResponse, error) MakeScientificPaperLatex(ctx context.Context, in *ScientificPaperRequest, opts ...grpc.CallOption) (*ScientificPaperResponse, error) }
PdfServiceClient is the client API for PdfService 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 NewPdfServiceClient ¶
func NewPdfServiceClient(cc grpc.ClientConnInterface) PdfServiceClient
type PdfServiceServer ¶
type PdfServiceServer interface { MakeScientificPaper(context.Context, *ScientificPaperRequest) (*ScientificPaperResponse, error) MakeScientificPaperLatex(context.Context, *ScientificPaperRequest) (*ScientificPaperResponse, error) // contains filtered or unexported methods }
PdfServiceServer is the server API for PdfService service. All implementations must embed UnimplementedPdfServiceServer for forward compatibility
type ScientificPaperRequest ¶
type ScientificPaperRequest struct { Meta *PaperMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Content *PaperContent `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*ScientificPaperRequest) Descriptor
deprecated
func (*ScientificPaperRequest) Descriptor() ([]byte, []int)
Deprecated: Use ScientificPaperRequest.ProtoReflect.Descriptor instead.
func (*ScientificPaperRequest) GetContent ¶
func (x *ScientificPaperRequest) GetContent() *PaperContent
func (*ScientificPaperRequest) GetMeta ¶
func (x *ScientificPaperRequest) GetMeta() *PaperMeta
func (*ScientificPaperRequest) ProtoMessage ¶
func (*ScientificPaperRequest) ProtoMessage()
func (*ScientificPaperRequest) ProtoReflect ¶
func (x *ScientificPaperRequest) ProtoReflect() protoreflect.Message
func (*ScientificPaperRequest) Reset ¶
func (x *ScientificPaperRequest) Reset()
func (*ScientificPaperRequest) String ¶
func (x *ScientificPaperRequest) String() string
type ScientificPaperResponse ¶
type ScientificPaperResponse struct { Pdf []byte `protobuf:"bytes,1,opt,name=pdf,proto3" json:"pdf,omitempty"` Pages int64 `protobuf:"varint,2,opt,name=pages,proto3" json:"pages,omitempty"` // contains filtered or unexported fields }
func (*ScientificPaperResponse) Descriptor
deprecated
func (*ScientificPaperResponse) Descriptor() ([]byte, []int)
Deprecated: Use ScientificPaperResponse.ProtoReflect.Descriptor instead.
func (*ScientificPaperResponse) GetPages ¶
func (x *ScientificPaperResponse) GetPages() int64
func (*ScientificPaperResponse) GetPdf ¶
func (x *ScientificPaperResponse) GetPdf() []byte
func (*ScientificPaperResponse) ProtoMessage ¶
func (*ScientificPaperResponse) ProtoMessage()
func (*ScientificPaperResponse) ProtoReflect ¶
func (x *ScientificPaperResponse) ProtoReflect() protoreflect.Message
func (*ScientificPaperResponse) Reset ¶
func (x *ScientificPaperResponse) Reset()
func (*ScientificPaperResponse) String ¶
func (x *ScientificPaperResponse) String() string
type StringArray ¶
type StringArray struct { Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*StringArray) Descriptor
deprecated
func (*StringArray) Descriptor() ([]byte, []int)
Deprecated: Use StringArray.ProtoReflect.Descriptor instead.
func (*StringArray) GetValues ¶
func (x *StringArray) GetValues() []string
func (*StringArray) ProtoMessage ¶
func (*StringArray) ProtoMessage()
func (*StringArray) ProtoReflect ¶
func (x *StringArray) ProtoReflect() protoreflect.Message
func (*StringArray) Reset ¶
func (x *StringArray) Reset()
func (*StringArray) String ¶
func (x *StringArray) String() string
type Table ¶
type Table struct { Headers []string `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` Columns []*StringArray `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"` // contains filtered or unexported fields }
func (*Table) Descriptor
deprecated
func (*Table) GetColumns ¶
func (x *Table) GetColumns() []*StringArray
func (*Table) GetHeaders ¶
func (*Table) ProtoMessage ¶
func (*Table) ProtoMessage()
func (*Table) ProtoReflect ¶
func (x *Table) ProtoReflect() protoreflect.Message
type UnimplementedPdfServiceServer ¶
type UnimplementedPdfServiceServer struct { }
UnimplementedPdfServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPdfServiceServer) MakeScientificPaper ¶
func (UnimplementedPdfServiceServer) MakeScientificPaper(context.Context, *ScientificPaperRequest) (*ScientificPaperResponse, error)
func (UnimplementedPdfServiceServer) MakeScientificPaperLatex ¶
func (UnimplementedPdfServiceServer) MakeScientificPaperLatex(context.Context, *ScientificPaperRequest) (*ScientificPaperResponse, error)
type UnsafePdfServiceServer ¶
type UnsafePdfServiceServer interface {
// contains filtered or unexported methods
}
UnsafePdfServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PdfServiceServer will result in compilation errors.