Documentation ¶
Index ¶
- Variables
- func RegisterServicePanierServer(s grpc.ServiceRegistrar, srv ServicePanierServer)
- type Article
- type ByUtilisateurRequest
- func (*ByUtilisateurRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ByUtilisateurRequest) GetUtilisateur() *utilisateurpb.Utilisateur
- func (*ByUtilisateurRequest) ProtoMessage()
- func (x *ByUtilisateurRequest) ProtoReflect() protoreflect.Message
- func (x *ByUtilisateurRequest) Reset()
- func (x *ByUtilisateurRequest) String() string
- type Panier
- type PanierRequest
- type PanierResponse
- type ServicePanierClient
- type ServicePanierServer
- type UnimplementedServicePanierServer
- type UnsafeServicePanierServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_panier_proto protoreflect.FileDescriptor
Functions ¶
func RegisterServicePanierServer ¶
func RegisterServicePanierServer(s grpc.ServiceRegistrar, srv ServicePanierServer)
Types ¶
type Article ¶
type Article struct { Produit *produitpb.Produit `protobuf:"bytes,1,opt,name=produit,proto3" json:"produit,omitempty"` Qte int32 `protobuf:"varint,2,opt,name=qte,proto3" json:"qte,omitempty"` // contains filtered or unexported fields }
func (*Article) Descriptor
deprecated
func (*Article) GetProduit ¶
func (*Article) ProtoMessage ¶
func (*Article) ProtoMessage()
func (*Article) ProtoReflect ¶
func (x *Article) ProtoReflect() protoreflect.Message
type ByUtilisateurRequest ¶
type ByUtilisateurRequest struct { Utilisateur *utilisateurpb.Utilisateur `protobuf:"bytes,1,opt,name=utilisateur,proto3" json:"utilisateur,omitempty"` // contains filtered or unexported fields }
func (*ByUtilisateurRequest) Descriptor
deprecated
func (*ByUtilisateurRequest) Descriptor() ([]byte, []int)
Deprecated: Use ByUtilisateurRequest.ProtoReflect.Descriptor instead.
func (*ByUtilisateurRequest) GetUtilisateur ¶
func (x *ByUtilisateurRequest) GetUtilisateur() *utilisateurpb.Utilisateur
func (*ByUtilisateurRequest) ProtoMessage ¶
func (*ByUtilisateurRequest) ProtoMessage()
func (*ByUtilisateurRequest) ProtoReflect ¶
func (x *ByUtilisateurRequest) ProtoReflect() protoreflect.Message
func (*ByUtilisateurRequest) Reset ¶
func (x *ByUtilisateurRequest) Reset()
func (*ByUtilisateurRequest) String ¶
func (x *ByUtilisateurRequest) String() string
type Panier ¶
type Panier struct { Utilisateur *utilisateurpb.Utilisateur `protobuf:"bytes,1,opt,name=utilisateur,proto3" json:"utilisateur,omitempty"` Article []*Article `protobuf:"bytes,2,rep,name=article,proto3" json:"article,omitempty"` // contains filtered or unexported fields }
func (*Panier) Descriptor
deprecated
func (*Panier) GetArticle ¶
func (*Panier) GetUtilisateur ¶
func (x *Panier) GetUtilisateur() *utilisateurpb.Utilisateur
func (*Panier) ProtoMessage ¶
func (*Panier) ProtoMessage()
func (*Panier) ProtoReflect ¶
func (x *Panier) ProtoReflect() protoreflect.Message
type PanierRequest ¶
type PanierRequest struct { Panier *Panier `protobuf:"bytes,1,opt,name=panier,proto3" json:"panier,omitempty"` // contains filtered or unexported fields }
func (*PanierRequest) Descriptor
deprecated
func (*PanierRequest) Descriptor() ([]byte, []int)
Deprecated: Use PanierRequest.ProtoReflect.Descriptor instead.
func (*PanierRequest) GetPanier ¶
func (x *PanierRequest) GetPanier() *Panier
func (*PanierRequest) ProtoMessage ¶
func (*PanierRequest) ProtoMessage()
func (*PanierRequest) ProtoReflect ¶
func (x *PanierRequest) ProtoReflect() protoreflect.Message
func (*PanierRequest) Reset ¶
func (x *PanierRequest) Reset()
func (*PanierRequest) String ¶
func (x *PanierRequest) String() string
type PanierResponse ¶
type PanierResponse struct { Panier *Panier `protobuf:"bytes,1,opt,name=panier,proto3" json:"panier,omitempty"` // contains filtered or unexported fields }
func (*PanierResponse) Descriptor
deprecated
func (*PanierResponse) Descriptor() ([]byte, []int)
Deprecated: Use PanierResponse.ProtoReflect.Descriptor instead.
func (*PanierResponse) GetPanier ¶
func (x *PanierResponse) GetPanier() *Panier
func (*PanierResponse) ProtoMessage ¶
func (*PanierResponse) ProtoMessage()
func (*PanierResponse) ProtoReflect ¶
func (x *PanierResponse) ProtoReflect() protoreflect.Message
func (*PanierResponse) Reset ¶
func (x *PanierResponse) Reset()
func (*PanierResponse) String ¶
func (x *PanierResponse) String() string
type ServicePanierClient ¶
type ServicePanierClient interface { UpdatePanier(ctx context.Context, in *PanierRequest, opts ...grpc.CallOption) (*PanierResponse, error) GetPanier(ctx context.Context, in *ByUtilisateurRequest, opts ...grpc.CallOption) (*PanierResponse, error) }
ServicePanierClient is the client API for ServicePanier 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 NewServicePanierClient ¶
func NewServicePanierClient(cc grpc.ClientConnInterface) ServicePanierClient
type ServicePanierServer ¶
type ServicePanierServer interface { UpdatePanier(context.Context, *PanierRequest) (*PanierResponse, error) GetPanier(context.Context, *ByUtilisateurRequest) (*PanierResponse, error) // contains filtered or unexported methods }
ServicePanierServer is the server API for ServicePanier service. All implementations must embed UnimplementedServicePanierServer for forward compatibility
type UnimplementedServicePanierServer ¶
type UnimplementedServicePanierServer struct { }
UnimplementedServicePanierServer must be embedded to have forward compatible implementations.
func (UnimplementedServicePanierServer) GetPanier ¶
func (UnimplementedServicePanierServer) GetPanier(context.Context, *ByUtilisateurRequest) (*PanierResponse, error)
func (UnimplementedServicePanierServer) UpdatePanier ¶
func (UnimplementedServicePanierServer) UpdatePanier(context.Context, *PanierRequest) (*PanierResponse, error)
type UnsafeServicePanierServer ¶
type UnsafeServicePanierServer interface {
// contains filtered or unexported methods
}
UnsafeServicePanierServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServicePanierServer will result in compilation errors.