div

package module
v0.0.0-...-3d25f2c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

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

type DivServiceServer interface {
	Div2Numbers(context.Context, *Request) (*Response, error)
}

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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetNumber1

func (x *Request) GetNumber1() float32

func (*Request) GetNumber2

func (x *Request) GetNumber2() float32

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetDiv

func (x *Response) GetDiv() float32

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type Server

type Server struct {
}

func (*Server) Div2Numbers

func (s *Server) Div2Numbers(ctx context.Context, request *Request) (*Response, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL