Documentation ¶
Index ¶
- Variables
- func RegisterClienteServiceServer(s grpc.ServiceRegistrar, srv ClienteServiceServer)
- type ClienteRequest
- type ClienteServiceClient
- type ClienteServiceServer
- type GeneralResponse
- type IdRequest
- type ListaPedidosReponse
- func (*ListaPedidosReponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListaPedidosReponse) GetPedidos() []*PedidoReqRes
- func (*ListaPedidosReponse) ProtoMessage()
- func (x *ListaPedidosReponse) ProtoReflect() protoreflect.Message
- func (x *ListaPedidosReponse) Reset()
- func (x *ListaPedidosReponse) String() string
- type PedidoReqRes
- func (*PedidoReqRes) Descriptor() ([]byte, []int)deprecated
- func (x *PedidoReqRes) GetId() int32
- func (x *PedidoReqRes) GetProducto() []*ProducoRequest
- func (*PedidoReqRes) ProtoMessage()
- func (x *PedidoReqRes) ProtoReflect() protoreflect.Message
- func (x *PedidoReqRes) Reset()
- func (x *PedidoReqRes) String() string
- type ProducoRequest
- func (*ProducoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProducoRequest) GetCantidad() int32
- func (x *ProducoRequest) GetNombre() string
- func (*ProducoRequest) ProtoMessage()
- func (x *ProducoRequest) ProtoReflect() protoreflect.Message
- func (x *ProducoRequest) Reset()
- func (x *ProducoRequest) String() string
- type UnimplementedClienteServiceServer
- func (UnimplementedClienteServiceServer) CrearPedido(context.Context, *ClienteRequest) (*GeneralResponse, error)
- func (UnimplementedClienteServiceServer) EnviarEncargo(context.Context, *IdRequest) (*GeneralResponse, error)
- func (UnimplementedClienteServiceServer) GetEstadoReparto(context.Context, *IdRequest) (*GeneralResponse, error)
- func (UnimplementedClienteServiceServer) GetEstadoRestaurant(context.Context, *IdRequest) (*GeneralResponse, error)
- func (UnimplementedClienteServiceServer) GetPedidos(context.Context, *Vacio) (*ListaPedidosReponse, error)
- func (UnimplementedClienteServiceServer) GetPedidosReparto(context.Context, *Vacio) (*ListaPedidosReponse, error)
- func (UnimplementedClienteServiceServer) GetPedidosRest(context.Context, *Vacio) (*ListaPedidosReponse, error)
- func (UnimplementedClienteServiceServer) TerminarEncargo(context.Context, *IdRequest) (*GeneralResponse, error)
- type UnsafeClienteServiceServer
- type Vacio
Constants ¶
This section is empty.
Variables ¶
var ClienteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.ClienteService", HandlerType: (*ClienteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CrearPedido", Handler: _ClienteService_CrearPedido_Handler, }, { MethodName: "GetPedidos", Handler: _ClienteService_GetPedidos_Handler, }, { MethodName: "GetEstadoRestaurant", Handler: _ClienteService_GetEstadoRestaurant_Handler, }, { MethodName: "GetEstadoReparto", Handler: _ClienteService_GetEstadoReparto_Handler, }, { MethodName: "GetPedidosRest", Handler: _ClienteService_GetPedidosRest_Handler, }, { MethodName: "EnviarEncargo", Handler: _ClienteService_EnviarEncargo_Handler, }, { MethodName: "GetPedidosReparto", Handler: _ClienteService_GetPedidosReparto_Handler, }, { MethodName: "TerminarEncargo", Handler: _ClienteService_TerminarEncargo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "servidor.proto", }
ClienteService_ServiceDesc is the grpc.ServiceDesc for ClienteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_servidor_proto protoreflect.FileDescriptor
Functions ¶
func RegisterClienteServiceServer ¶
func RegisterClienteServiceServer(s grpc.ServiceRegistrar, srv ClienteServiceServer)
Types ¶
type ClienteRequest ¶
type ClienteRequest struct { Producto []*ProducoRequest `protobuf:"bytes,1,rep,name=producto,proto3" json:"producto,omitempty"` // contains filtered or unexported fields }
func (*ClienteRequest) Descriptor
deprecated
func (*ClienteRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClienteRequest.ProtoReflect.Descriptor instead.
func (*ClienteRequest) GetProducto ¶
func (x *ClienteRequest) GetProducto() []*ProducoRequest
func (*ClienteRequest) ProtoMessage ¶
func (*ClienteRequest) ProtoMessage()
func (*ClienteRequest) ProtoReflect ¶
func (x *ClienteRequest) ProtoReflect() protoreflect.Message
func (*ClienteRequest) Reset ¶
func (x *ClienteRequest) Reset()
func (*ClienteRequest) String ¶
func (x *ClienteRequest) String() string
type ClienteServiceClient ¶
type ClienteServiceClient interface { CrearPedido(ctx context.Context, in *ClienteRequest, opts ...grpc.CallOption) (*GeneralResponse, error) GetPedidos(ctx context.Context, in *Vacio, opts ...grpc.CallOption) (*ListaPedidosReponse, error) GetEstadoRestaurant(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*GeneralResponse, error) GetEstadoReparto(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*GeneralResponse, error) GetPedidosRest(ctx context.Context, in *Vacio, opts ...grpc.CallOption) (*ListaPedidosReponse, error) EnviarEncargo(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*GeneralResponse, error) GetPedidosReparto(ctx context.Context, in *Vacio, opts ...grpc.CallOption) (*ListaPedidosReponse, error) TerminarEncargo(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*GeneralResponse, error) }
ClienteServiceClient is the client API for ClienteService 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 NewClienteServiceClient ¶
func NewClienteServiceClient(cc grpc.ClientConnInterface) ClienteServiceClient
type ClienteServiceServer ¶
type ClienteServiceServer interface { CrearPedido(context.Context, *ClienteRequest) (*GeneralResponse, error) GetPedidos(context.Context, *Vacio) (*ListaPedidosReponse, error) GetEstadoRestaurant(context.Context, *IdRequest) (*GeneralResponse, error) GetEstadoReparto(context.Context, *IdRequest) (*GeneralResponse, error) GetPedidosRest(context.Context, *Vacio) (*ListaPedidosReponse, error) EnviarEncargo(context.Context, *IdRequest) (*GeneralResponse, error) GetPedidosReparto(context.Context, *Vacio) (*ListaPedidosReponse, error) TerminarEncargo(context.Context, *IdRequest) (*GeneralResponse, error) // contains filtered or unexported methods }
ClienteServiceServer is the server API for ClienteService service. All implementations must embed UnimplementedClienteServiceServer for forward compatibility
type GeneralResponse ¶
type GeneralResponse struct { Mensaje string `protobuf:"bytes,1,opt,name=mensaje,proto3" json:"mensaje,omitempty"` // contains filtered or unexported fields }
func (*GeneralResponse) Descriptor
deprecated
func (*GeneralResponse) Descriptor() ([]byte, []int)
Deprecated: Use GeneralResponse.ProtoReflect.Descriptor instead.
func (*GeneralResponse) GetMensaje ¶
func (x *GeneralResponse) GetMensaje() string
func (*GeneralResponse) ProtoMessage ¶
func (*GeneralResponse) ProtoMessage()
func (*GeneralResponse) ProtoReflect ¶
func (x *GeneralResponse) ProtoReflect() protoreflect.Message
func (*GeneralResponse) Reset ¶
func (x *GeneralResponse) Reset()
func (*GeneralResponse) String ¶
func (x *GeneralResponse) String() string
type IdRequest ¶
type IdRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdRequest) Descriptor
deprecated
func (*IdRequest) ProtoMessage ¶
func (*IdRequest) ProtoMessage()
func (*IdRequest) ProtoReflect ¶
func (x *IdRequest) ProtoReflect() protoreflect.Message
type ListaPedidosReponse ¶
type ListaPedidosReponse struct { Pedidos []*PedidoReqRes `protobuf:"bytes,1,rep,name=pedidos,proto3" json:"pedidos,omitempty"` // contains filtered or unexported fields }
func (*ListaPedidosReponse) Descriptor
deprecated
func (*ListaPedidosReponse) Descriptor() ([]byte, []int)
Deprecated: Use ListaPedidosReponse.ProtoReflect.Descriptor instead.
func (*ListaPedidosReponse) GetPedidos ¶
func (x *ListaPedidosReponse) GetPedidos() []*PedidoReqRes
func (*ListaPedidosReponse) ProtoMessage ¶
func (*ListaPedidosReponse) ProtoMessage()
func (*ListaPedidosReponse) ProtoReflect ¶
func (x *ListaPedidosReponse) ProtoReflect() protoreflect.Message
func (*ListaPedidosReponse) Reset ¶
func (x *ListaPedidosReponse) Reset()
func (*ListaPedidosReponse) String ¶
func (x *ListaPedidosReponse) String() string
type PedidoReqRes ¶
type PedidoReqRes struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Producto []*ProducoRequest `protobuf:"bytes,2,rep,name=producto,proto3" json:"producto,omitempty"` // contains filtered or unexported fields }
func (*PedidoReqRes) Descriptor
deprecated
func (*PedidoReqRes) Descriptor() ([]byte, []int)
Deprecated: Use PedidoReqRes.ProtoReflect.Descriptor instead.
func (*PedidoReqRes) GetId ¶
func (x *PedidoReqRes) GetId() int32
func (*PedidoReqRes) GetProducto ¶
func (x *PedidoReqRes) GetProducto() []*ProducoRequest
func (*PedidoReqRes) ProtoMessage ¶
func (*PedidoReqRes) ProtoMessage()
func (*PedidoReqRes) ProtoReflect ¶
func (x *PedidoReqRes) ProtoReflect() protoreflect.Message
func (*PedidoReqRes) Reset ¶
func (x *PedidoReqRes) Reset()
func (*PedidoReqRes) String ¶
func (x *PedidoReqRes) String() string
type ProducoRequest ¶
type ProducoRequest struct { Nombre string `protobuf:"bytes,1,opt,name=nombre,proto3" json:"nombre,omitempty"` Cantidad int32 `protobuf:"varint,2,opt,name=cantidad,proto3" json:"cantidad,omitempty"` // contains filtered or unexported fields }
func (*ProducoRequest) Descriptor
deprecated
func (*ProducoRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProducoRequest.ProtoReflect.Descriptor instead.
func (*ProducoRequest) GetCantidad ¶
func (x *ProducoRequest) GetCantidad() int32
func (*ProducoRequest) GetNombre ¶
func (x *ProducoRequest) GetNombre() string
func (*ProducoRequest) ProtoMessage ¶
func (*ProducoRequest) ProtoMessage()
func (*ProducoRequest) ProtoReflect ¶
func (x *ProducoRequest) ProtoReflect() protoreflect.Message
func (*ProducoRequest) Reset ¶
func (x *ProducoRequest) Reset()
func (*ProducoRequest) String ¶
func (x *ProducoRequest) String() string
type UnimplementedClienteServiceServer ¶
type UnimplementedClienteServiceServer struct { }
UnimplementedClienteServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedClienteServiceServer) CrearPedido ¶
func (UnimplementedClienteServiceServer) CrearPedido(context.Context, *ClienteRequest) (*GeneralResponse, error)
func (UnimplementedClienteServiceServer) EnviarEncargo ¶
func (UnimplementedClienteServiceServer) EnviarEncargo(context.Context, *IdRequest) (*GeneralResponse, error)
func (UnimplementedClienteServiceServer) GetEstadoReparto ¶
func (UnimplementedClienteServiceServer) GetEstadoReparto(context.Context, *IdRequest) (*GeneralResponse, error)
func (UnimplementedClienteServiceServer) GetEstadoRestaurant ¶
func (UnimplementedClienteServiceServer) GetEstadoRestaurant(context.Context, *IdRequest) (*GeneralResponse, error)
func (UnimplementedClienteServiceServer) GetPedidos ¶
func (UnimplementedClienteServiceServer) GetPedidos(context.Context, *Vacio) (*ListaPedidosReponse, error)
func (UnimplementedClienteServiceServer) GetPedidosReparto ¶
func (UnimplementedClienteServiceServer) GetPedidosReparto(context.Context, *Vacio) (*ListaPedidosReponse, error)
func (UnimplementedClienteServiceServer) GetPedidosRest ¶
func (UnimplementedClienteServiceServer) GetPedidosRest(context.Context, *Vacio) (*ListaPedidosReponse, error)
func (UnimplementedClienteServiceServer) TerminarEncargo ¶
func (UnimplementedClienteServiceServer) TerminarEncargo(context.Context, *IdRequest) (*GeneralResponse, error)
type UnsafeClienteServiceServer ¶
type UnsafeClienteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeClienteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClienteServiceServer will result in compilation errors.
type Vacio ¶
type Vacio struct {
// contains filtered or unexported fields
}
func (*Vacio) Descriptor
deprecated
func (*Vacio) ProtoMessage ¶
func (*Vacio) ProtoMessage()
func (*Vacio) ProtoReflect ¶
func (x *Vacio) ProtoReflect() protoreflect.Message