Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
Object ObjectRequest Response
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPassObjectServer ¶
func RegisterPassObjectServer(s *grpc.Server, srv PassObjectServer)
Types ¶
type Object ¶
type Object struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Size uint32 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"` }
func (*Object) Descriptor ¶
func (*Object) ProtoMessage ¶
func (*Object) ProtoMessage()
type ObjectRequest ¶
type ObjectRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*ObjectRequest) Descriptor ¶
func (*ObjectRequest) Descriptor() ([]byte, []int)
func (*ObjectRequest) ProtoMessage ¶
func (*ObjectRequest) ProtoMessage()
func (*ObjectRequest) Reset ¶
func (m *ObjectRequest) Reset()
func (*ObjectRequest) String ¶
func (m *ObjectRequest) String() string
type PassObjectClient ¶
type PassObjectClient interface { // sends an object to the server SendObject(ctx context.Context, in *Object, opts ...grpc.CallOption) (*Response, error) // receives object from the server ReceiveObject(ctx context.Context, in *ObjectRequest, opts ...grpc.CallOption) (*Object, error) }
func NewPassObjectClient ¶
func NewPassObjectClient(cc *grpc.ClientConn) PassObjectClient
type PassObjectServer ¶
type Response ¶
type Response struct {
Response string `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.