grpc

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package grpc is a generated protocol buffer package.

It is generated from these files:

builder.proto

It has these top-level messages:

BuildLatexRequest
FileReply
File
HealthReply
HealthRequest
MergeRequest

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBuilderServer

func RegisterBuilderServer(s *grpc1.Server, srv BuilderServer)

Types

type BuildLatexRequest

type BuildLatexRequest struct {
	Files []*File `protobuf:"bytes,1,rep,name=files" json:"files,omitempty"`
}

func (*BuildLatexRequest) Descriptor

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

func (*BuildLatexRequest) GetFiles

func (m *BuildLatexRequest) GetFiles() []*File

func (*BuildLatexRequest) ProtoMessage

func (*BuildLatexRequest) ProtoMessage()

func (*BuildLatexRequest) Reset

func (m *BuildLatexRequest) Reset()

func (*BuildLatexRequest) String

func (m *BuildLatexRequest) String() string

type BuilderClient

type BuilderClient interface {
	// BuildLatex Takes latex files and returns a reply
	BuildLatex(ctx context.Context, in *BuildLatexRequest, opts ...grpc1.CallOption) (*FileReply, error)
	Merge(ctx context.Context, in *MergeRequest, opts ...grpc1.CallOption) (*FileReply, error)
	Health(ctx context.Context, in *HealthRequest, opts ...grpc1.CallOption) (*HealthReply, error)
}

func NewBuilderClient

func NewBuilderClient(cc *grpc1.ClientConn) BuilderClient

type BuilderServer

type BuilderServer interface {
	// BuildLatex Takes latex files and returns a reply
	BuildLatex(context.Context, *BuildLatexRequest) (*FileReply, error)
	Merge(context.Context, *MergeRequest) (*FileReply, error)
	Health(context.Context, *HealthRequest) (*HealthReply, error)
}

type File

type File struct {
	Name   string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Data   []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Folder string `protobuf:"bytes,3,opt,name=folder" json:"folder,omitempty"`
}

func (*File) Descriptor

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

func (*File) GetData

func (m *File) GetData() []byte

func (*File) GetFolder

func (m *File) GetFolder() string

func (*File) GetName

func (m *File) GetName() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) Reset

func (m *File) Reset()

func (*File) String

func (m *File) String() string

type FileReply

type FileReply struct {
	Data    []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Success bool   `protobuf:"varint,3,opt,name=success" json:"success,omitempty"`
	Note    string `protobuf:"bytes,4,opt,name=note" json:"note,omitempty"`
}

func (*FileReply) Descriptor

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

func (*FileReply) GetData

func (m *FileReply) GetData() []byte

func (*FileReply) GetNote

func (m *FileReply) GetNote() string

func (*FileReply) GetSuccess

func (m *FileReply) GetSuccess() bool

func (*FileReply) ProtoMessage

func (*FileReply) ProtoMessage()

func (*FileReply) Reset

func (m *FileReply) Reset()

func (*FileReply) String

func (m *FileReply) String() string

type HealthReply

type HealthReply struct {
	Healthy bool `protobuf:"varint,1,opt,name=healthy" json:"healthy,omitempty"`
}

func (*HealthReply) Descriptor

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

func (*HealthReply) GetHealthy

func (m *HealthReply) GetHealthy() bool

func (*HealthReply) ProtoMessage

func (*HealthReply) ProtoMessage()

func (*HealthReply) Reset

func (m *HealthReply) Reset()

func (*HealthReply) String

func (m *HealthReply) String() string

type HealthRequest

type HealthRequest struct {
}

func (*HealthRequest) Descriptor

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

func (*HealthRequest) ProtoMessage

func (*HealthRequest) ProtoMessage()

func (*HealthRequest) Reset

func (m *HealthRequest) Reset()

func (*HealthRequest) String

func (m *HealthRequest) String() string

type MergeRequest

type MergeRequest struct {
	Files     []*File `protobuf:"bytes,1,rep,name=files" json:"files,omitempty"`
	ForceEven bool    `protobuf:"varint,2,opt,name=force_even,json=forceEven" json:"force_even,omitempty"`
}

func (*MergeRequest) Descriptor

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

func (*MergeRequest) GetFiles

func (m *MergeRequest) GetFiles() []*File

func (*MergeRequest) GetForceEven

func (m *MergeRequest) GetForceEven() bool

func (*MergeRequest) ProtoMessage

func (*MergeRequest) ProtoMessage()

func (*MergeRequest) Reset

func (m *MergeRequest) Reset()

func (*MergeRequest) String

func (m *MergeRequest) String() string

Jump to

Keyboard shortcuts

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