Documentation ¶
Index ¶
- func RegisterCalcServer(s *grpc.Server, srv CalcServer)
- type CalcClient
- type CalcServer
- type SumReq
- func (*SumReq) Descriptor() ([]byte, []int)
- func (m *SumReq) GetA() int32
- func (m *SumReq) GetB() int32
- func (*SumReq) ProtoMessage()
- func (m *SumReq) Reset()
- func (m *SumReq) String() string
- func (m *SumReq) XXX_DiscardUnknown()
- func (m *SumReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SumReq) XXX_Merge(src proto.Message)
- func (m *SumReq) XXX_Size() int
- func (m *SumReq) XXX_Unmarshal(b []byte) error
- type SumResp
- func (*SumResp) Descriptor() ([]byte, []int)
- func (m *SumResp) GetS() int32
- func (*SumResp) ProtoMessage()
- func (m *SumResp) Reset()
- func (m *SumResp) String() string
- func (m *SumResp) XXX_DiscardUnknown()
- func (m *SumResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SumResp) XXX_Merge(src proto.Message)
- func (m *SumResp) XXX_Size() int
- func (m *SumResp) XXX_Unmarshal(b []byte) error
- type UnimplementedCalcServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCalcServer ¶
func RegisterCalcServer(s *grpc.Server, srv CalcServer)
Types ¶
type CalcClient ¶
type CalcClient interface {
Sum(ctx context.Context, in *SumReq, opts ...grpc.CallOption) (*SumResp, error)
}
CalcClient is the client API for Calc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCalcClient ¶
func NewCalcClient(cc *grpc.ClientConn) CalcClient
type CalcServer ¶
CalcServer is the server API for Calc service.
type SumReq ¶
type SumReq struct { A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"` B int32 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SumReq) Descriptor ¶
func (*SumReq) ProtoMessage ¶
func (*SumReq) ProtoMessage()
func (*SumReq) XXX_DiscardUnknown ¶
func (m *SumReq) XXX_DiscardUnknown()
func (*SumReq) XXX_Marshal ¶
func (*SumReq) XXX_Unmarshal ¶
type SumResp ¶
type SumResp struct { S int32 `protobuf:"varint,1,opt,name=s,proto3" json:"s,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SumResp) Descriptor ¶
func (*SumResp) ProtoMessage ¶
func (*SumResp) ProtoMessage()
func (*SumResp) XXX_DiscardUnknown ¶
func (m *SumResp) XXX_DiscardUnknown()
func (*SumResp) XXX_Marshal ¶
func (*SumResp) XXX_Unmarshal ¶
type UnimplementedCalcServer ¶
type UnimplementedCalcServer struct { }
UnimplementedCalcServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.