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) ProtoMessage ¶
func (*File) ProtoMessage()
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) GetSuccess ¶
func (*FileReply) ProtoMessage ¶
func (*FileReply) ProtoMessage()
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
Click to show internal directories.
Click to hide internal directories.