Documentation ¶
Index ¶
- func RegisterArithmeticServer(s *grpc.Server, srv ArithmeticServer)
- type AddInput
- func (*AddInput) Descriptor() ([]byte, []int)
- func (m *AddInput) GetA() float32
- func (m *AddInput) GetB() float32
- func (*AddInput) ProtoMessage()
- func (m *AddInput) Reset()
- func (m *AddInput) String() string
- func (m *AddInput) XXX_DiscardUnknown()
- func (m *AddInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddInput) XXX_Merge(src proto.Message)
- func (m *AddInput) XXX_Size() int
- func (m *AddInput) XXX_Unmarshal(b []byte) error
- type AddOutput
- func (*AddOutput) Descriptor() ([]byte, []int)
- func (m *AddOutput) GetSum() float32
- func (*AddOutput) ProtoMessage()
- func (m *AddOutput) Reset()
- func (m *AddOutput) String() string
- func (m *AddOutput) XXX_DiscardUnknown()
- func (m *AddOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddOutput) XXX_Merge(src proto.Message)
- func (m *AddOutput) XXX_Size() int
- func (m *AddOutput) XXX_Unmarshal(b []byte) error
- type ArithmeticClient
- type ArithmeticServer
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterArithmeticServer ¶
func RegisterArithmeticServer(s *grpc.Server, srv ArithmeticServer)
Types ¶
type AddInput ¶
type AddInput struct { A float32 `protobuf:"fixed32,1,opt,name=A,proto3" json:"A,omitempty"` B float32 `protobuf:"fixed32,2,opt,name=B,proto3" json:"B,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddInput) Descriptor ¶
func (*AddInput) ProtoMessage ¶
func (*AddInput) ProtoMessage()
func (*AddInput) XXX_DiscardUnknown ¶
func (m *AddInput) XXX_DiscardUnknown()
func (*AddInput) XXX_Marshal ¶
func (*AddInput) XXX_Unmarshal ¶
type AddOutput ¶
type AddOutput struct { Sum float32 `protobuf:"fixed32,1,opt,name=Sum,proto3" json:"Sum,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddOutput) Descriptor ¶
func (*AddOutput) ProtoMessage ¶
func (*AddOutput) ProtoMessage()
func (*AddOutput) XXX_DiscardUnknown ¶
func (m *AddOutput) XXX_DiscardUnknown()
func (*AddOutput) XXX_Marshal ¶
func (*AddOutput) XXX_Unmarshal ¶
type ArithmeticClient ¶
type ArithmeticClient interface {
Add(ctx context.Context, in *AddInput, opts ...grpc.CallOption) (*AddOutput, error)
}
ArithmeticClient is the client API for Arithmetic service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewArithmeticClient ¶
func NewArithmeticClient(cc *grpc.ClientConn) ArithmeticClient
type ArithmeticServer ¶
ArithmeticServer is the server API for Arithmetic service.
Click to show internal directories.
Click to hide internal directories.