Documentation ¶
Index ¶
- func RegisterCommonServer(s *grpc.Server, srv CommonServer)
- type CommonClient
- type CommonReq
- func (*CommonReq) Descriptor() ([]byte, []int)
- func (m *CommonReq) GetA() int64
- func (m *CommonReq) GetB() int64
- func (*CommonReq) ProtoMessage()
- func (m *CommonReq) Reset()
- func (m *CommonReq) String() string
- func (m *CommonReq) XXX_DiscardUnknown()
- func (m *CommonReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommonReq) XXX_Merge(src proto.Message)
- func (m *CommonReq) XXX_Size() int
- func (m *CommonReq) XXX_Unmarshal(b []byte) error
- type CommonRes
- func (*CommonRes) Descriptor() ([]byte, []int)
- func (m *CommonRes) GetC() int64
- func (*CommonRes) ProtoMessage()
- func (m *CommonRes) Reset()
- func (m *CommonRes) String() string
- func (m *CommonRes) XXX_DiscardUnknown()
- func (m *CommonRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommonRes) XXX_Merge(src proto.Message)
- func (m *CommonRes) XXX_Size() int
- func (m *CommonRes) XXX_Unmarshal(b []byte) error
- type CommonServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCommonServer ¶
func RegisterCommonServer(s *grpc.Server, srv CommonServer)
Types ¶
type CommonClient ¶
type CommonClient interface {
Plus(ctx context.Context, in *CommonReq, opts ...grpc.CallOption) (*CommonRes, error)
}
CommonClient is the client API for Common service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCommonClient ¶
func NewCommonClient(cc *grpc.ClientConn) CommonClient
type CommonReq ¶
type CommonReq 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 (*CommonReq) Descriptor ¶
func (*CommonReq) ProtoMessage ¶
func (*CommonReq) ProtoMessage()
func (*CommonReq) XXX_DiscardUnknown ¶
func (m *CommonReq) XXX_DiscardUnknown()
func (*CommonReq) XXX_Marshal ¶
func (*CommonReq) XXX_Unmarshal ¶
type CommonRes ¶
type CommonRes struct { C int64 `protobuf:"varint,1,opt,name=c,proto3" json:"c,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CommonRes) Descriptor ¶
func (*CommonRes) ProtoMessage ¶
func (*CommonRes) ProtoMessage()
func (*CommonRes) XXX_DiscardUnknown ¶
func (m *CommonRes) XXX_DiscardUnknown()
func (*CommonRes) XXX_Marshal ¶
func (*CommonRes) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.