pb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: MIT Imports: 5 Imported by: 0

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

func RegisterAPIServer(s *grpc.Server, srv APIServer)

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) Descriptor() ([]byte, []int)

func (*DBQuery) GetTable

func (m *DBQuery) GetTable() string

func (*DBQuery) ProtoMessage

func (*DBQuery) ProtoMessage()

func (*DBQuery) Reset

func (m *DBQuery) Reset()

func (*DBQuery) String

func (m *DBQuery) String() string

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

Jump to

Keyboard shortcuts

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