protobuf

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TexCompiler_CompileToPDF_FullMethodName = "/tex_to_pdf.TexCompiler/CompileToPDF"
)

Variables

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

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetContent

func (x *File) GetContent() []byte

func (*File) GetName

func (x *File) GetName() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

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

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

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.

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

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.

Jump to

Keyboard shortcuts

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