panierpb

package
v0.0.0-...-8f3b465 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Article.ProtoReflect.Descriptor instead.

func (*Article) GetProduit

func (x *Article) GetProduit() *produitpb.Produit

func (*Article) GetQte

func (x *Article) GetQte() int32

func (*Article) ProtoMessage

func (*Article) ProtoMessage()

func (*Article) ProtoReflect

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

func (*Article) Reset

func (x *Article) Reset()

func (*Article) String

func (x *Article) String() string

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

Deprecated: Use Panier.ProtoReflect.Descriptor instead.

func (*Panier) GetArticle

func (x *Panier) GetArticle() []*Article

func (*Panier) GetUtilisateur

func (x *Panier) GetUtilisateur() *utilisateurpb.Utilisateur

func (*Panier) ProtoMessage

func (*Panier) ProtoMessage()

func (*Panier) ProtoReflect

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

func (*Panier) Reset

func (x *Panier) Reset()

func (*Panier) String

func (x *Panier) String() string

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.

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) UpdatePanier

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.

Jump to

Keyboard shortcuts

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