Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_grpc_interface_proto protoreflect.FileDescriptor
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) GetIsPiloting ¶
func (*Reply) GetRequestAmount ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
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) GetRequestAmount ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
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.
func NewRequestServiceClient ¶
func NewRequestServiceClient(cc grpc.ClientConnInterface) RequestServiceClient
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.
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.