Documentation ¶
Index ¶
- func RegisterMathServer(s *grpc.Server, srv MathServer)
- type MathClient
- type MathServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetDividend() int64
- func (m *Request) GetDivisor() int64
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetQuotient() int64
- func (m *Response) GetRemainder() int64
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMathServer ¶
func RegisterMathServer(s *grpc.Server, srv MathServer)
Types ¶
type MathClient ¶
type MathClient interface {
Div(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
MathClient is the client API for Math service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMathClient ¶
func NewMathClient(cc *grpc.ClientConn) MathClient
type MathServer ¶
MathServer is the server API for Math service.
type Request ¶
type Request struct { Dividend int64 `protobuf:"varint,1,opt,name=dividend" json:"dividend,omitempty"` Divisor int64 `protobuf:"varint,2,opt,name=divisor" json:"divisor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetDividend ¶
func (*Request) GetDivisor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Quotient int64 `protobuf:"varint,1,opt,name=quotient" json:"quotient,omitempty"` Remainder int64 `protobuf:"varint,2,opt,name=remainder" json:"remainder,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetQuotient ¶
func (*Response) GetRemainder ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.