Documentation
¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
pb/pb.proto
It has these top-level messages:
DBQuery QueryReply DeployRequest DeployReply
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { Query(ctx context.Context, in *DBQuery, opts ...grpc.CallOption) (*QueryReply, error) Deploy(ctx context.Context, in *DeployRequest, opts ...grpc.CallOption) (*DeployReply, error) }
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { Query(context.Context, *DBQuery) (*QueryReply, error) Deploy(context.Context, *DeployRequest) (*DeployReply, error) }
type DBQuery ¶
type DBQuery struct {
Table string `protobuf:"bytes,1,opt,name=Table,json=table" json:"Table,omitempty"`
}
func (*DBQuery) Descriptor ¶
func (*DBQuery) ProtoMessage ¶
func (*DBQuery) ProtoMessage()
type DeployReply ¶
type DeployReply struct { }
func (*DeployReply) Descriptor ¶
func (*DeployReply) Descriptor() ([]byte, []int)
func (*DeployReply) ProtoMessage ¶
func (*DeployReply) ProtoMessage()
func (*DeployReply) Reset ¶
func (m *DeployReply) Reset()
func (*DeployReply) String ¶
func (m *DeployReply) String() string
type DeployRequest ¶
type DeployRequest struct {
Deployment string `protobuf:"bytes,1,opt,name=Deployment,json=deployment" json:"Deployment,omitempty"`
}
func (*DeployRequest) Descriptor ¶
func (*DeployRequest) Descriptor() ([]byte, []int)
func (*DeployRequest) GetDeployment ¶
func (m *DeployRequest) GetDeployment() string
func (*DeployRequest) ProtoMessage ¶
func (*DeployRequest) ProtoMessage()
func (*DeployRequest) Reset ¶
func (m *DeployRequest) Reset()
func (*DeployRequest) String ¶
func (m *DeployRequest) String() string
type QueryReply ¶
type QueryReply struct {
TableContents string `protobuf:"bytes,1,opt,name=TableContents,json=tableContents" json:"TableContents,omitempty"`
}
func (*QueryReply) Descriptor ¶
func (*QueryReply) Descriptor() ([]byte, []int)
func (*QueryReply) GetTableContents ¶
func (m *QueryReply) GetTableContents() string
func (*QueryReply) ProtoMessage ¶
func (*QueryReply) ProtoMessage()
func (*QueryReply) Reset ¶
func (m *QueryReply) Reset()
func (*QueryReply) String ¶
func (m *QueryReply) String() string
Click to show internal directories.
Click to hide internal directories.