numbers

package
v0.0.0-...-f80a0af Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_numbers_proto protoreflect.FileDescriptor
View Source
var NumService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "numbers.NumService",
	HandlerType: (*NumServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Rnd",
			Handler:       _NumService_Rnd_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "numbers.proto",
}

NumService_ServiceDesc is the grpc.ServiceDesc for NumService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterNumServiceServer

func RegisterNumServiceServer(s grpc.ServiceRegistrar, srv NumServiceServer)

Types

type NumRequest

type NumRequest struct {
	From int64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"`
	To   int64 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"`
	N    int64 `protobuf:"varint,3,opt,name=n,proto3" json:"n,omitempty"`
	// contains filtered or unexported fields
}

func (*NumRequest) Descriptor deprecated

func (*NumRequest) Descriptor() ([]byte, []int)

Deprecated: Use NumRequest.ProtoReflect.Descriptor instead.

func (*NumRequest) GetFrom

func (x *NumRequest) GetFrom() int64

func (*NumRequest) GetN

func (x *NumRequest) GetN() int64

func (*NumRequest) GetTo

func (x *NumRequest) GetTo() int64

func (*NumRequest) ProtoMessage

func (*NumRequest) ProtoMessage()

func (*NumRequest) ProtoReflect

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

func (*NumRequest) Reset

func (x *NumRequest) Reset()

func (*NumRequest) String

func (x *NumRequest) String() string

type NumResponse

type NumResponse struct {
	I         int64 `protobuf:"varint,1,opt,name=i,proto3" json:"i,omitempty"`
	Remaining int64 `protobuf:"varint,2,opt,name=remaining,proto3" json:"remaining,omitempty"`
	// contains filtered or unexported fields
}

func (*NumResponse) Descriptor deprecated

func (*NumResponse) Descriptor() ([]byte, []int)

Deprecated: Use NumResponse.ProtoReflect.Descriptor instead.

func (*NumResponse) GetI

func (x *NumResponse) GetI() int64

func (*NumResponse) GetRemaining

func (x *NumResponse) GetRemaining() int64

func (*NumResponse) ProtoMessage

func (*NumResponse) ProtoMessage()

func (*NumResponse) ProtoReflect

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

func (*NumResponse) Reset

func (x *NumResponse) Reset()

func (*NumResponse) String

func (x *NumResponse) String() string

type NumServiceClient

type NumServiceClient interface {
	Rnd(ctx context.Context, in *NumRequest, opts ...grpc.CallOption) (NumService_RndClient, error)
}

NumServiceClient is the client API for NumService 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 NewNumServiceClient

func NewNumServiceClient(cc grpc.ClientConnInterface) NumServiceClient

type NumServiceServer

type NumServiceServer interface {
	Rnd(*NumRequest, NumService_RndServer) error
	// contains filtered or unexported methods
}

NumServiceServer is the server API for NumService service. All implementations must embed UnimplementedNumServiceServer for forward compatibility

type NumService_RndClient

type NumService_RndClient interface {
	Recv() (*NumResponse, error)
	grpc.ClientStream
}

type NumService_RndServer

type NumService_RndServer interface {
	Send(*NumResponse) error
	grpc.ServerStream
}

type UnimplementedNumServiceServer

type UnimplementedNumServiceServer struct {
}

UnimplementedNumServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNumServiceServer) Rnd

type UnsafeNumServiceServer

type UnsafeNumServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeNumServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NumServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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