protocliente

package module
v0.0.0-...-b34251a Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 8 Imported by: 0

README

Cliente GRPC

Servidor para la unión de diversos microservicios

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClienteService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc.ClienteService",
	HandlerType: (*ClienteServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPedidos",
			Handler:    _ClienteService_GetPedidos_Handler,
		},
		{
			MethodName: "crearPedido",
			Handler:    _ClienteService_CrearPedido_Handler,
		},
		{
			MethodName: "GetEstadoRestaurant",
			Handler:    _ClienteService_GetEstadoRestaurant_Handler,
		},
		{
			MethodName: "GetEstadoReparto",
			Handler:    _ClienteService_GetEstadoReparto_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cliente.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)

View Source
var File_cliente_proto protoreflect.FileDescriptor

Functions

func RegisterClienteServiceServer

func RegisterClienteServiceServer(s grpc.ServiceRegistrar, srv ClienteServiceServer)

Types

type ClienteReponse

type ClienteReponse struct {
	Pedidos []*PedidoReqRes `protobuf:"bytes,1,rep,name=Pedidos,proto3" json:"Pedidos,omitempty"`
	// contains filtered or unexported fields
}

func (*ClienteReponse) Descriptor deprecated

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

Deprecated: Use ClienteReponse.ProtoReflect.Descriptor instead.

func (*ClienteReponse) GetPedidos

func (x *ClienteReponse) GetPedidos() []*PedidoReqRes

func (*ClienteReponse) ProtoMessage

func (*ClienteReponse) ProtoMessage()

func (*ClienteReponse) ProtoReflect

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

func (*ClienteReponse) Reset

func (x *ClienteReponse) Reset()

func (*ClienteReponse) String

func (x *ClienteReponse) String() string

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 {
	GetPedidos(ctx context.Context, in *Vacio, opts ...grpc.CallOption) (*ClienteReponse, error)
	CrearPedido(ctx context.Context, in *ClienteRequest, opts ...grpc.CallOption) (*GeneralResponse, error)
	GetEstadoRestaurant(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*GeneralResponse, error)
	GetEstadoReparto(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.

type ClienteServiceServer

type ClienteServiceServer interface {
	GetPedidos(context.Context, *Vacio) (*ClienteReponse, error)
	CrearPedido(context.Context, *ClienteRequest) (*GeneralResponse, error)
	GetEstadoRestaurant(context.Context, *IdRequest) (*GeneralResponse, error)
	GetEstadoReparto(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) Descriptor() ([]byte, []int)

Deprecated: Use IdRequest.ProtoReflect.Descriptor instead.

func (*IdRequest) GetId

func (x *IdRequest) GetId() int32

func (*IdRequest) ProtoMessage

func (*IdRequest) ProtoMessage()

func (*IdRequest) ProtoReflect

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

func (*IdRequest) Reset

func (x *IdRequest) Reset()

func (*IdRequest) String

func (x *IdRequest) 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) GetEstadoReparto

func (UnimplementedClienteServiceServer) GetEstadoRestaurant

func (UnimplementedClienteServiceServer) GetPedidos

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

Deprecated: Use Vacio.ProtoReflect.Descriptor instead.

func (*Vacio) ProtoMessage

func (*Vacio) ProtoMessage()

func (*Vacio) ProtoReflect

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

func (*Vacio) Reset

func (x *Vacio) Reset()

func (*Vacio) String

func (x *Vacio) String() string

Jump to

Keyboard shortcuts

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