request

package
v0.0.0-...-b88f8c5 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpc_interface_proto protoreflect.FileDescriptor
View Source
var RequestService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "request.RequestService",
	HandlerType: (*RequestServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "request",
			Handler:    _RequestService_Request_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "grpc/interface.proto",
}

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

Functions

func RegisterRequestServiceServer

func RegisterRequestServiceServer(s grpc.ServiceRegistrar, srv RequestServiceServer)

Types

type Reply

type Reply struct {
	Id            int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	RequestAmount int32 `protobuf:"varint,2,opt,name=requestAmount,proto3" json:"requestAmount,omitempty"`
	IsPiloting    bool  `protobuf:"varint,3,opt,name=isPiloting,proto3" json:"isPiloting,omitempty"`
	// contains filtered or unexported fields
}

func (*Reply) Descriptor deprecated

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

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetId

func (x *Reply) GetId() int32

func (*Reply) GetIsPiloting

func (x *Reply) GetIsPiloting() bool

func (*Reply) GetRequestAmount

func (x *Reply) GetRequestAmount() int32

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) ProtoReflect

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

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) String

func (x *Reply) String() string

type Request

type Request struct {
	Id            int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	RequestAmount int32 `protobuf:"varint,2,opt,name=requestAmount,proto3" json:"requestAmount,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetId

func (x *Request) GetId() int32

func (*Request) GetRequestAmount

func (x *Request) GetRequestAmount() int32

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 RequestServiceClient

type RequestServiceClient interface {
	Request(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error)
}

RequestServiceClient is the client API for RequestService 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.

type RequestServiceServer

type RequestServiceServer interface {
	Request(context.Context, *Request) (*Reply, error)
	// contains filtered or unexported methods
}

RequestServiceServer is the server API for RequestService service. All implementations must embed UnimplementedRequestServiceServer for forward compatibility

type UnimplementedRequestServiceServer

type UnimplementedRequestServiceServer struct {
}

UnimplementedRequestServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRequestServiceServer) Request

type UnsafeRequestServiceServer

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

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

Jump to

Keyboard shortcuts

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