Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
add.proto
It has these top-level messages:
AddRequest AddReply
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAddServer ¶
Types ¶
type AddClient ¶
type AddClient interface { // Adds two int32s. Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddReply, error) }
func NewAddClient ¶
func NewAddClient(cc *grpc.ClientConn) AddClient
type AddReply ¶
type AddReply struct {
V int64 `protobuf:"varint,1,opt,name=v" json:"v,omitempty"`
}
The response contains the result of the calculation.
func (*AddReply) ProtoMessage ¶
func (*AddReply) ProtoMessage()
type AddRequest ¶
type AddRequest struct { A int64 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"` B int64 `protobuf:"varint,2,opt,name=b" json:"b,omitempty"` }
The request contains two parameters.
func (*AddRequest) ProtoMessage ¶
func (*AddRequest) ProtoMessage()
func (*AddRequest) Reset ¶
func (m *AddRequest) Reset()
func (*AddRequest) String ¶
func (m *AddRequest) String() string
Click to show internal directories.
Click to hide internal directories.