pb

package
v0.0.0-...-b6a64c3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 5 Imported by: 2

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

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) Reset

func (m *Object) Reset()

func (*Object) String

func (m *Object) String() string

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 PassObjectServer interface {
	// sends an object to the server
	SendObject(context.Context, *Object) (*Response, error)
	// receives object from the server
	ReceiveObject(context.Context, *ObjectRequest) (*Object, error)
}

type Response

type Response struct {
	Response string `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}

func (*Response) Descriptor

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

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

Jump to

Keyboard shortcuts

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