Documentation ¶
Index ¶
- func RegisterSumServer(s *grpc.Server, srv SumServer)
- type Numbers
- func (*Numbers) Descriptor() ([]byte, []int)
- func (m *Numbers) GetA() int64
- func (m *Numbers) GetB() int64
- func (*Numbers) ProtoMessage()
- func (m *Numbers) Reset()
- func (m *Numbers) String() string
- func (m *Numbers) XXX_DiscardUnknown()
- func (m *Numbers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Numbers) XXX_Merge(src proto.Message)
- func (m *Numbers) XXX_Size() int
- func (m *Numbers) XXX_Unmarshal(b []byte) error
- type SumClient
- type SumRequest
- func (*SumRequest) Descriptor() ([]byte, []int)
- func (m *SumRequest) GetNumbers() *Numbers
- func (*SumRequest) ProtoMessage()
- func (m *SumRequest) Reset()
- func (m *SumRequest) String() string
- func (m *SumRequest) XXX_DiscardUnknown()
- func (m *SumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SumRequest) XXX_Merge(src proto.Message)
- func (m *SumRequest) XXX_Size() int
- func (m *SumRequest) XXX_Unmarshal(b []byte) error
- type SumResponse
- func (*SumResponse) Descriptor() ([]byte, []int)
- func (m *SumResponse) GetResult() int64
- func (*SumResponse) ProtoMessage()
- func (m *SumResponse) Reset()
- func (m *SumResponse) String() string
- func (m *SumResponse) XXX_DiscardUnknown()
- func (m *SumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SumResponse) XXX_Merge(src proto.Message)
- func (m *SumResponse) XXX_Size() int
- func (m *SumResponse) XXX_Unmarshal(b []byte) error
- type SumServer
- type UnimplementedSumServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Numbers ¶
type Numbers struct { A int64 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"` B int64 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Numbers) XXX_Marshal ¶
type SumClient ¶
type SumClient interface { // unary rpc service Add(ctx context.Context, in *SumRequest, opts ...grpc.CallOption) (*SumResponse, error) }
SumClient is the client API for Sum service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSumClient ¶
func NewSumClient(cc grpc.ClientConnInterface) SumClient
type SumRequest ¶
type SumRequest struct { Numbers *Numbers `protobuf:"bytes,1,opt,name=numbers,proto3" json:"numbers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SumRequest) Descriptor ¶
func (*SumRequest) Descriptor() ([]byte, []int)
func (*SumRequest) GetNumbers ¶
func (m *SumRequest) GetNumbers() *Numbers
func (*SumRequest) ProtoMessage ¶
func (*SumRequest) ProtoMessage()
func (*SumRequest) Reset ¶
func (m *SumRequest) Reset()
func (*SumRequest) String ¶
func (m *SumRequest) String() string
func (*SumRequest) XXX_DiscardUnknown ¶
func (m *SumRequest) XXX_DiscardUnknown()
func (*SumRequest) XXX_Marshal ¶
func (m *SumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SumRequest) XXX_Merge ¶
func (m *SumRequest) XXX_Merge(src proto.Message)
func (*SumRequest) XXX_Size ¶
func (m *SumRequest) XXX_Size() int
func (*SumRequest) XXX_Unmarshal ¶
func (m *SumRequest) XXX_Unmarshal(b []byte) error
type SumResponse ¶
type SumResponse struct { Result int64 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SumResponse) Descriptor ¶
func (*SumResponse) Descriptor() ([]byte, []int)
func (*SumResponse) GetResult ¶
func (m *SumResponse) GetResult() int64
func (*SumResponse) ProtoMessage ¶
func (*SumResponse) ProtoMessage()
func (*SumResponse) Reset ¶
func (m *SumResponse) Reset()
func (*SumResponse) String ¶
func (m *SumResponse) String() string
func (*SumResponse) XXX_DiscardUnknown ¶
func (m *SumResponse) XXX_DiscardUnknown()
func (*SumResponse) XXX_Marshal ¶
func (m *SumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SumResponse) XXX_Merge ¶
func (m *SumResponse) XXX_Merge(src proto.Message)
func (*SumResponse) XXX_Size ¶
func (m *SumResponse) XXX_Size() int
func (*SumResponse) XXX_Unmarshal ¶
func (m *SumResponse) XXX_Unmarshal(b []byte) error
type SumServer ¶
type SumServer interface { // unary rpc service Add(context.Context, *SumRequest) (*SumResponse, error) }
SumServer is the server API for Sum service.
type UnimplementedSumServer ¶
type UnimplementedSumServer struct { }
UnimplementedSumServer can be embedded to have forward compatible implementations.
func (*UnimplementedSumServer) Add ¶
func (*UnimplementedSumServer) Add(ctx context.Context, req *SumRequest) (*SumResponse, error)
Click to show internal directories.
Click to hide internal directories.