Documentation ¶
Index ¶
- Variables
- func RegisterDividerServer(s *grpc.Server, srv DividerServer)
- type DivideRequest
- func (*DivideRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DivideRequest) GetA() float64
- func (x *DivideRequest) GetB() float64
- func (*DivideRequest) ProtoMessage()
- func (x *DivideRequest) ProtoReflect() protoreflect.Message
- func (x *DivideRequest) Reset()
- func (x *DivideRequest) String() string
- type DivideResponse
- type DividerClient
- type DividerServer
- type IntegerDivideRequest
- func (*IntegerDivideRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IntegerDivideRequest) GetA() int32
- func (x *IntegerDivideRequest) GetB() int32
- func (*IntegerDivideRequest) ProtoMessage()
- func (x *IntegerDivideRequest) ProtoReflect() protoreflect.Message
- func (x *IntegerDivideRequest) Reset()
- func (x *IntegerDivideRequest) String() string
- type IntegerDivideResponse
- func (*IntegerDivideResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IntegerDivideResponse) GetField() int32
- func (*IntegerDivideResponse) ProtoMessage()
- func (x *IntegerDivideResponse) ProtoReflect() protoreflect.Message
- func (x *IntegerDivideResponse) Reset()
- func (x *IntegerDivideResponse) String() string
- type UnimplementedDividerServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_divider_proto protoreflect.FileDescriptor
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"` // contains filtered or unexported fields }
func (*DivideRequest) Descriptor
deprecated
func (*DivideRequest) Descriptor() ([]byte, []int)
Deprecated: Use DivideRequest.ProtoReflect.Descriptor instead.
func (*DivideRequest) GetA ¶
func (x *DivideRequest) GetA() float64
func (*DivideRequest) GetB ¶
func (x *DivideRequest) GetB() float64
func (*DivideRequest) ProtoMessage ¶
func (*DivideRequest) ProtoMessage()
func (*DivideRequest) ProtoReflect ¶
func (x *DivideRequest) ProtoReflect() protoreflect.Message
func (*DivideRequest) Reset ¶
func (x *DivideRequest) Reset()
func (*DivideRequest) String ¶
func (x *DivideRequest) String() string
type DivideResponse ¶
type DivideResponse struct { Field float64 `protobuf:"fixed64,1,opt,name=field,proto3" json:"field,omitempty"` // contains filtered or unexported fields }
func (*DivideResponse) Descriptor
deprecated
func (*DivideResponse) Descriptor() ([]byte, []int)
Deprecated: Use DivideResponse.ProtoReflect.Descriptor instead.
func (*DivideResponse) GetField ¶
func (x *DivideResponse) GetField() float64
func (*DivideResponse) ProtoMessage ¶
func (*DivideResponse) ProtoMessage()
func (*DivideResponse) ProtoReflect ¶
func (x *DivideResponse) ProtoReflect() protoreflect.Message
func (*DivideResponse) Reset ¶
func (x *DivideResponse) Reset()
func (*DivideResponse) String ¶
func (x *DivideResponse) String() string
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.ClientConnInterface) 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"` // contains filtered or unexported fields }
func (*IntegerDivideRequest) Descriptor
deprecated
func (*IntegerDivideRequest) Descriptor() ([]byte, []int)
Deprecated: Use IntegerDivideRequest.ProtoReflect.Descriptor instead.
func (*IntegerDivideRequest) GetA ¶
func (x *IntegerDivideRequest) GetA() int32
func (*IntegerDivideRequest) GetB ¶
func (x *IntegerDivideRequest) GetB() int32
func (*IntegerDivideRequest) ProtoMessage ¶
func (*IntegerDivideRequest) ProtoMessage()
func (*IntegerDivideRequest) ProtoReflect ¶
func (x *IntegerDivideRequest) ProtoReflect() protoreflect.Message
func (*IntegerDivideRequest) Reset ¶
func (x *IntegerDivideRequest) Reset()
func (*IntegerDivideRequest) String ¶
func (x *IntegerDivideRequest) String() string
type IntegerDivideResponse ¶
type IntegerDivideResponse struct { Field int32 `protobuf:"zigzag32,1,opt,name=field,proto3" json:"field,omitempty"` // contains filtered or unexported fields }
func (*IntegerDivideResponse) Descriptor
deprecated
func (*IntegerDivideResponse) Descriptor() ([]byte, []int)
Deprecated: Use IntegerDivideResponse.ProtoReflect.Descriptor instead.
func (*IntegerDivideResponse) GetField ¶
func (x *IntegerDivideResponse) GetField() int32
func (*IntegerDivideResponse) ProtoMessage ¶
func (*IntegerDivideResponse) ProtoMessage()
func (*IntegerDivideResponse) ProtoReflect ¶
func (x *IntegerDivideResponse) ProtoReflect() protoreflect.Message
func (*IntegerDivideResponse) Reset ¶
func (x *IntegerDivideResponse) Reset()
func (*IntegerDivideResponse) String ¶
func (x *IntegerDivideResponse) String() string
type UnimplementedDividerServer ¶
type UnimplementedDividerServer struct { }
UnimplementedDividerServer can be embedded to have forward compatible implementations.
func (*UnimplementedDividerServer) Divide ¶
func (*UnimplementedDividerServer) Divide(context.Context, *DivideRequest) (*DivideResponse, error)
func (*UnimplementedDividerServer) IntegerDivide ¶
func (*UnimplementedDividerServer) IntegerDivide(context.Context, *IntegerDivideRequest) (*IntegerDivideResponse, error)
Click to show internal directories.
Click to hide internal directories.