Documentation ¶
Index ¶
- type ArithRequest
- type ArithResponse
- type ArithService
- func (this *ArithService) Add(args *ArithRequest, reply *ArithResponse) error
- func (this *ArithService) Div(args *ArithRequest, reply *ArithResponse) error
- func (this *ArithService) Mul(args *ArithRequest, reply *ArithResponse) error
- func (this *ArithService) Sub(args *ArithRequest, reply *ArithResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArithRequest ¶
type ArithRequest struct { A float64 `protobuf:"fixed64,1,opt,name=a" json:"a,omitempty"` B float64 `protobuf:"fixed64,2,opt,name=b" json:"b,omitempty"` }
func (*ArithRequest) Descriptor ¶
func (*ArithRequest) Descriptor() ([]byte, []int)
func (*ArithRequest) GetA ¶
func (m *ArithRequest) GetA() float64
func (*ArithRequest) GetB ¶
func (m *ArithRequest) GetB() float64
func (*ArithRequest) ProtoMessage ¶
func (*ArithRequest) ProtoMessage()
func (*ArithRequest) Reset ¶
func (m *ArithRequest) Reset()
func (*ArithRequest) String ¶
func (m *ArithRequest) String() string
type ArithResponse ¶
type ArithResponse struct {
C float64 `protobuf:"fixed64,1,opt,name=c" json:"c,omitempty"`
}
func (*ArithResponse) Descriptor ¶
func (*ArithResponse) Descriptor() ([]byte, []int)
func (*ArithResponse) GetC ¶
func (m *ArithResponse) GetC() float64
func (*ArithResponse) ProtoMessage ¶
func (*ArithResponse) ProtoMessage()
func (*ArithResponse) Reset ¶
func (m *ArithResponse) Reset()
func (*ArithResponse) String ¶
func (m *ArithResponse) String() string
type ArithService ¶
type ArithService struct{}
ArithService Defining Computational Digital Services
func (*ArithService) Add ¶
func (this *ArithService) Add(args *ArithRequest, reply *ArithResponse) error
Add addition
func (*ArithService) Div ¶
func (this *ArithService) Div(args *ArithRequest, reply *ArithResponse) error
Div division
func (*ArithService) Mul ¶
func (this *ArithService) Mul(args *ArithRequest, reply *ArithResponse) error
Mul multiplication
func (*ArithService) Sub ¶
func (this *ArithService) Sub(args *ArithRequest, reply *ArithResponse) error
Sub subtraction
Click to show internal directories.
Click to hide internal directories.