Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DivService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "div.DivService", HandlerType: (*DivServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Div2Numbers", Handler: _DivService_Div2Numbers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "div.proto", }
DivService_ServiceDesc is the grpc.ServiceDesc for DivService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_div_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDivServiceServer ¶
func RegisterDivServiceServer(s grpc.ServiceRegistrar, srv DivServiceServer)
Types ¶
type DivServiceClient ¶
type DivServiceClient interface {
Div2Numbers(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
DivServiceClient is the client API for DivService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDivServiceClient ¶
func NewDivServiceClient(cc grpc.ClientConnInterface) DivServiceClient
type DivServiceServer ¶
DivServiceServer is the server API for DivService service. All implementations should embed UnimplementedDivServiceServer for forward compatibility
type Request ¶
type Request struct { Number1 float32 `protobuf:"fixed32,1,opt,name=number1,proto3" json:"number1,omitempty"` Number2 float32 `protobuf:"fixed32,2,opt,name=number2,proto3" json:"number2,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetNumber1 ¶
func (*Request) GetNumber2 ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Div float32 `protobuf:"fixed32,1,opt,name=div,proto3" json:"div,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedDivServiceServer ¶
type UnimplementedDivServiceServer struct { }
UnimplementedDivServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedDivServiceServer) Div2Numbers ¶
type UnsafeDivServiceServer ¶
type UnsafeDivServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDivServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DivServiceServer will result in compilation errors.