Documentation ¶
Index ¶
- func RegisterDividerServer(s *grpc.Server, srv DividerServer)
- type DivideRequest
- func (*DivideRequest) Descriptor() ([]byte, []int)
- func (m *DivideRequest) GetA() float64
- func (m *DivideRequest) GetB() float64
- func (*DivideRequest) ProtoMessage()
- func (m *DivideRequest) Reset()
- func (m *DivideRequest) String() string
- func (m *DivideRequest) XXX_DiscardUnknown()
- func (m *DivideRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DivideRequest) XXX_Merge(src proto.Message)
- func (m *DivideRequest) XXX_Size() int
- func (m *DivideRequest) XXX_Unmarshal(b []byte) error
- type DivideResponse
- func (*DivideResponse) Descriptor() ([]byte, []int)
- func (m *DivideResponse) GetField() float64
- func (*DivideResponse) ProtoMessage()
- func (m *DivideResponse) Reset()
- func (m *DivideResponse) String() string
- func (m *DivideResponse) XXX_DiscardUnknown()
- func (m *DivideResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DivideResponse) XXX_Merge(src proto.Message)
- func (m *DivideResponse) XXX_Size() int
- func (m *DivideResponse) XXX_Unmarshal(b []byte) error
- type DividerClient
- type DividerServer
- type IntegerDivideRequest
- func (*IntegerDivideRequest) Descriptor() ([]byte, []int)
- func (m *IntegerDivideRequest) GetA() int32
- func (m *IntegerDivideRequest) GetB() int32
- func (*IntegerDivideRequest) ProtoMessage()
- func (m *IntegerDivideRequest) Reset()
- func (m *IntegerDivideRequest) String() string
- func (m *IntegerDivideRequest) XXX_DiscardUnknown()
- func (m *IntegerDivideRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IntegerDivideRequest) XXX_Merge(src proto.Message)
- func (m *IntegerDivideRequest) XXX_Size() int
- func (m *IntegerDivideRequest) XXX_Unmarshal(b []byte) error
- type IntegerDivideResponse
- func (*IntegerDivideResponse) Descriptor() ([]byte, []int)
- func (m *IntegerDivideResponse) GetField() int32
- func (*IntegerDivideResponse) ProtoMessage()
- func (m *IntegerDivideResponse) Reset()
- func (m *IntegerDivideResponse) String() string
- func (m *IntegerDivideResponse) XXX_DiscardUnknown()
- func (m *IntegerDivideResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IntegerDivideResponse) XXX_Merge(src proto.Message)
- func (m *IntegerDivideResponse) XXX_Size() int
- func (m *IntegerDivideResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedDividerServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDividerServer ¶
func RegisterDividerServer(s *grpc.Server, srv DividerServer)
Types ¶
type DivideRequest ¶
type DivideRequest struct { // Left operand A float64 `protobuf:"fixed64,1,opt,name=a,proto3" json:"a,omitempty"` // Right operand B float64 `protobuf:"fixed64,2,opt,name=b,proto3" json:"b,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DivideRequest) Descriptor ¶
func (*DivideRequest) Descriptor() ([]byte, []int)
func (*DivideRequest) GetA ¶
func (m *DivideRequest) GetA() float64
func (*DivideRequest) GetB ¶
func (m *DivideRequest) GetB() float64
func (*DivideRequest) ProtoMessage ¶
func (*DivideRequest) ProtoMessage()
func (*DivideRequest) Reset ¶
func (m *DivideRequest) Reset()
func (*DivideRequest) String ¶
func (m *DivideRequest) String() string
func (*DivideRequest) XXX_DiscardUnknown ¶
func (m *DivideRequest) XXX_DiscardUnknown()
func (*DivideRequest) XXX_Marshal ¶
func (m *DivideRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DivideRequest) XXX_Merge ¶
func (m *DivideRequest) XXX_Merge(src proto.Message)
func (*DivideRequest) XXX_Size ¶
func (m *DivideRequest) XXX_Size() int
func (*DivideRequest) XXX_Unmarshal ¶
func (m *DivideRequest) XXX_Unmarshal(b []byte) error
type DivideResponse ¶
type DivideResponse struct { Field float64 `protobuf:"fixed64,1,opt,name=field,proto3" json:"field,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DivideResponse) Descriptor ¶
func (*DivideResponse) Descriptor() ([]byte, []int)
func (*DivideResponse) GetField ¶
func (m *DivideResponse) GetField() float64
func (*DivideResponse) ProtoMessage ¶
func (*DivideResponse) ProtoMessage()
func (*DivideResponse) Reset ¶
func (m *DivideResponse) Reset()
func (*DivideResponse) String ¶
func (m *DivideResponse) String() string
func (*DivideResponse) XXX_DiscardUnknown ¶
func (m *DivideResponse) XXX_DiscardUnknown()
func (*DivideResponse) XXX_Marshal ¶
func (m *DivideResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DivideResponse) XXX_Merge ¶
func (m *DivideResponse) XXX_Merge(src proto.Message)
func (*DivideResponse) XXX_Size ¶
func (m *DivideResponse) XXX_Size() int
func (*DivideResponse) XXX_Unmarshal ¶
func (m *DivideResponse) XXX_Unmarshal(b []byte) error
type DividerClient ¶
type DividerClient interface { // IntegerDivide implements integer_divide. IntegerDivide(ctx context.Context, in *IntegerDivideRequest, opts ...grpc.CallOption) (*IntegerDivideResponse, error) // Divide implements divide. Divide(ctx context.Context, in *DivideRequest, opts ...grpc.CallOption) (*DivideResponse, error) }
DividerClient is the client API for Divider service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDividerClient ¶
func NewDividerClient(cc *grpc.ClientConn) DividerClient
type DividerServer ¶
type DividerServer interface { // IntegerDivide implements integer_divide. IntegerDivide(context.Context, *IntegerDivideRequest) (*IntegerDivideResponse, error) // Divide implements divide. Divide(context.Context, *DivideRequest) (*DivideResponse, error) }
DividerServer is the server API for Divider service.
type IntegerDivideRequest ¶
type IntegerDivideRequest struct { // Left operand A int32 `protobuf:"zigzag32,1,opt,name=a,proto3" json:"a,omitempty"` // Right operand B int32 `protobuf:"zigzag32,2,opt,name=b,proto3" json:"b,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IntegerDivideRequest) Descriptor ¶
func (*IntegerDivideRequest) Descriptor() ([]byte, []int)
func (*IntegerDivideRequest) GetA ¶
func (m *IntegerDivideRequest) GetA() int32
func (*IntegerDivideRequest) GetB ¶
func (m *IntegerDivideRequest) GetB() int32
func (*IntegerDivideRequest) ProtoMessage ¶
func (*IntegerDivideRequest) ProtoMessage()
func (*IntegerDivideRequest) Reset ¶
func (m *IntegerDivideRequest) Reset()
func (*IntegerDivideRequest) String ¶
func (m *IntegerDivideRequest) String() string
func (*IntegerDivideRequest) XXX_DiscardUnknown ¶
func (m *IntegerDivideRequest) XXX_DiscardUnknown()
func (*IntegerDivideRequest) XXX_Marshal ¶
func (m *IntegerDivideRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IntegerDivideRequest) XXX_Merge ¶
func (m *IntegerDivideRequest) XXX_Merge(src proto.Message)
func (*IntegerDivideRequest) XXX_Size ¶
func (m *IntegerDivideRequest) XXX_Size() int
func (*IntegerDivideRequest) XXX_Unmarshal ¶
func (m *IntegerDivideRequest) XXX_Unmarshal(b []byte) error
type IntegerDivideResponse ¶
type IntegerDivideResponse struct { Field int32 `protobuf:"zigzag32,1,opt,name=field,proto3" json:"field,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IntegerDivideResponse) Descriptor ¶
func (*IntegerDivideResponse) Descriptor() ([]byte, []int)
func (*IntegerDivideResponse) GetField ¶
func (m *IntegerDivideResponse) GetField() int32
func (*IntegerDivideResponse) ProtoMessage ¶
func (*IntegerDivideResponse) ProtoMessage()
func (*IntegerDivideResponse) Reset ¶
func (m *IntegerDivideResponse) Reset()
func (*IntegerDivideResponse) String ¶
func (m *IntegerDivideResponse) String() string
func (*IntegerDivideResponse) XXX_DiscardUnknown ¶
func (m *IntegerDivideResponse) XXX_DiscardUnknown()
func (*IntegerDivideResponse) XXX_Marshal ¶
func (m *IntegerDivideResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IntegerDivideResponse) XXX_Merge ¶
func (m *IntegerDivideResponse) XXX_Merge(src proto.Message)
func (*IntegerDivideResponse) XXX_Size ¶
func (m *IntegerDivideResponse) XXX_Size() int
func (*IntegerDivideResponse) XXX_Unmarshal ¶
func (m *IntegerDivideResponse) XXX_Unmarshal(b []byte) error
type UnimplementedDividerServer ¶
type UnimplementedDividerServer struct { }
UnimplementedDividerServer can be embedded to have forward compatible implementations.
func (*UnimplementedDividerServer) Divide ¶
func (*UnimplementedDividerServer) Divide(ctx context.Context, req *DivideRequest) (*DivideResponse, error)
func (*UnimplementedDividerServer) IntegerDivide ¶
func (*UnimplementedDividerServer) IntegerDivide(ctx context.Context, req *IntegerDivideRequest) (*IntegerDivideResponse, error)
Click to show internal directories.
Click to hide internal directories.