Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTexCompilerServer(s grpc.ServiceRegistrar, srv TexCompilerServer)
- type CompileReply
- func (*CompileReply) Descriptor() ([]byte, []int)deprecated
- func (x *CompileReply) GetLog() string
- func (x *CompileReply) GetPdfContent() []byte
- func (*CompileReply) ProtoMessage()
- func (x *CompileReply) ProtoReflect() protoreflect.Message
- func (x *CompileReply) Reset()
- func (x *CompileReply) String() string
- type CompileRequest
- type File
- type TexCompilerClient
- type TexCompilerServer
- type UnimplementedTexCompilerServer
- type UnsafeTexCompilerServer
Constants ¶
const (
TexCompiler_CompileToPDF_FullMethodName = "/tex_to_pdf.TexCompiler/CompileToPDF"
)
Variables ¶
var File_tex_to_pdf_proto protoreflect.FileDescriptor
var TexCompiler_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tex_to_pdf.TexCompiler", HandlerType: (*TexCompilerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CompileToPDF", Handler: _TexCompiler_CompileToPDF_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "tex_to_pdf.proto", }
TexCompiler_ServiceDesc is the grpc.ServiceDesc for TexCompiler service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTexCompilerServer ¶
func RegisterTexCompilerServer(s grpc.ServiceRegistrar, srv TexCompilerServer)
Types ¶
type CompileReply ¶
type CompileReply struct { PdfContent []byte `protobuf:"bytes,1,opt,name=pdf_content,json=pdfContent,proto3" json:"pdf_content,omitempty"` // The content of the resulting PDF file Log string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"` // The log of the compilation process // contains filtered or unexported fields }
func (*CompileReply) Descriptor
deprecated
func (*CompileReply) Descriptor() ([]byte, []int)
Deprecated: Use CompileReply.ProtoReflect.Descriptor instead.
func (*CompileReply) GetLog ¶
func (x *CompileReply) GetLog() string
func (*CompileReply) GetPdfContent ¶
func (x *CompileReply) GetPdfContent() []byte
func (*CompileReply) ProtoMessage ¶
func (*CompileReply) ProtoMessage()
func (*CompileReply) ProtoReflect ¶
func (x *CompileReply) ProtoReflect() protoreflect.Message
func (*CompileReply) Reset ¶
func (x *CompileReply) Reset()
func (*CompileReply) String ¶
func (x *CompileReply) String() string
type CompileRequest ¶
type CompileRequest struct { Files []*File `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` // A list of files. This allows sending TeX files and their corresponding images or other dependencies. // contains filtered or unexported fields }
func (*CompileRequest) Descriptor
deprecated
func (*CompileRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompileRequest.ProtoReflect.Descriptor instead.
func (*CompileRequest) GetFiles ¶
func (x *CompileRequest) GetFiles() []*File
func (*CompileRequest) ProtoMessage ¶
func (*CompileRequest) ProtoMessage()
func (*CompileRequest) ProtoReflect ¶
func (x *CompileRequest) ProtoReflect() protoreflect.Message
func (*CompileRequest) Reset ¶
func (x *CompileRequest) Reset()
func (*CompileRequest) String ¶
func (x *CompileRequest) String() string
type File ¶
type File struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // the name of the file (e.g. "main.tex") Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // the content of the file (e.g. "\documentclass{article}...") // contains filtered or unexported fields }
func (*File) Descriptor
deprecated
func (*File) GetContent ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type TexCompilerClient ¶
type TexCompilerClient interface {
CompileToPDF(ctx context.Context, in *CompileRequest, opts ...grpc.CallOption) (*CompileReply, error)
}
TexCompilerClient is the client API for TexCompiler 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 NewTexCompilerClient ¶
func NewTexCompilerClient(cc grpc.ClientConnInterface) TexCompilerClient
type TexCompilerServer ¶
type TexCompilerServer interface { CompileToPDF(context.Context, *CompileRequest) (*CompileReply, error) // contains filtered or unexported methods }
TexCompilerServer is the server API for TexCompiler service. All implementations must embed UnimplementedTexCompilerServer for forward compatibility
type UnimplementedTexCompilerServer ¶
type UnimplementedTexCompilerServer struct { }
UnimplementedTexCompilerServer must be embedded to have forward compatible implementations.
func (UnimplementedTexCompilerServer) CompileToPDF ¶
func (UnimplementedTexCompilerServer) CompileToPDF(context.Context, *CompileRequest) (*CompileReply, error)
type UnsafeTexCompilerServer ¶
type UnsafeTexCompilerServer interface {
// contains filtered or unexported methods
}
UnsafeTexCompilerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TexCompilerServer will result in compilation errors.