commandepb

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_commande_proto protoreflect.FileDescriptor

Functions

func RegisterServiceCommandeServer

func RegisterServiceCommandeServer(s grpc.ServiceRegistrar, srv ServiceCommandeServer)

Types

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 Commande

type Commande struct {
	Panier    *panierpb.Panier `protobuf:"bytes,1,opt,name=panier,proto3" json:"panier,omitempty"`
	Timestamp int64            `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Statut    string           `protobuf:"bytes,3,opt,name=statut,proto3" json:"statut,omitempty"`
	Ref       string           `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`
	// contains filtered or unexported fields
}

func (*Commande) Descriptor deprecated

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

Deprecated: Use Commande.ProtoReflect.Descriptor instead.

func (*Commande) GetPanier

func (x *Commande) GetPanier() *panierpb.Panier

func (*Commande) GetRef

func (x *Commande) GetRef() string

func (*Commande) GetStatut

func (x *Commande) GetStatut() string

func (*Commande) GetTimestamp

func (x *Commande) GetTimestamp() int64

func (*Commande) ProtoMessage

func (*Commande) ProtoMessage()

func (*Commande) ProtoReflect

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

func (*Commande) Reset

func (x *Commande) Reset()

func (*Commande) String

func (x *Commande) String() string

type CommandeRequest

type CommandeRequest struct {
	Commande *Commande `protobuf:"bytes,1,opt,name=commande,proto3" json:"commande,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandeRequest) Descriptor deprecated

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

Deprecated: Use CommandeRequest.ProtoReflect.Descriptor instead.

func (*CommandeRequest) GetCommande

func (x *CommandeRequest) GetCommande() *Commande

func (*CommandeRequest) ProtoMessage

func (*CommandeRequest) ProtoMessage()

func (*CommandeRequest) ProtoReflect

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

func (*CommandeRequest) Reset

func (x *CommandeRequest) Reset()

func (*CommandeRequest) String

func (x *CommandeRequest) String() string

type CommandeResponse

type CommandeResponse struct {
	Commande *Commande `protobuf:"bytes,1,opt,name=commande,proto3" json:"commande,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandeResponse) Descriptor deprecated

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

Deprecated: Use CommandeResponse.ProtoReflect.Descriptor instead.

func (*CommandeResponse) GetCommande

func (x *CommandeResponse) GetCommande() *Commande

func (*CommandeResponse) ProtoMessage

func (*CommandeResponse) ProtoMessage()

func (*CommandeResponse) ProtoReflect

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

func (*CommandeResponse) Reset

func (x *CommandeResponse) Reset()

func (*CommandeResponse) String

func (x *CommandeResponse) String() string

type CommandesResponse

type CommandesResponse struct {
	ListCommandes *ListCommandes `protobuf:"bytes,1,opt,name=ListCommandes,proto3" json:"ListCommandes,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandesResponse) Descriptor deprecated

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

Deprecated: Use CommandesResponse.ProtoReflect.Descriptor instead.

func (*CommandesResponse) GetListCommandes

func (x *CommandesResponse) GetListCommandes() *ListCommandes

func (*CommandesResponse) ProtoMessage

func (*CommandesResponse) ProtoMessage()

func (*CommandesResponse) ProtoReflect

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

func (*CommandesResponse) Reset

func (x *CommandesResponse) Reset()

func (*CommandesResponse) String

func (x *CommandesResponse) String() string

type LastCommandesRequest

type LastCommandesRequest struct {
	// contains filtered or unexported fields
}

func (*LastCommandesRequest) Descriptor deprecated

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

Deprecated: Use LastCommandesRequest.ProtoReflect.Descriptor instead.

func (*LastCommandesRequest) ProtoMessage

func (*LastCommandesRequest) ProtoMessage()

func (*LastCommandesRequest) ProtoReflect

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

func (*LastCommandesRequest) Reset

func (x *LastCommandesRequest) Reset()

func (*LastCommandesRequest) String

func (x *LastCommandesRequest) String() string

type ListCommandes

type ListCommandes struct {
	Commandes []*Commande `protobuf:"bytes,1,rep,name=commandes,proto3" json:"commandes,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCommandes) Descriptor deprecated

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

Deprecated: Use ListCommandes.ProtoReflect.Descriptor instead.

func (*ListCommandes) GetCommandes

func (x *ListCommandes) GetCommandes() []*Commande

func (*ListCommandes) ProtoMessage

func (*ListCommandes) ProtoMessage()

func (*ListCommandes) ProtoReflect

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

func (*ListCommandes) Reset

func (x *ListCommandes) Reset()

func (*ListCommandes) String

func (x *ListCommandes) String() string

type ServiceCommandeClient

type ServiceCommandeClient interface {
	ValidateCommande(ctx context.Context, in *CommandeRequest, opts ...grpc.CallOption) (*CommandeResponse, error)
	SubmitCommande(ctx context.Context, in *CommandeRequest, opts ...grpc.CallOption) (*CommandeResponse, error)
	GetLastCommandes(ctx context.Context, in *LastCommandesRequest, opts ...grpc.CallOption) (*CommandesResponse, error)
	GetUserCommandes(ctx context.Context, in *ByUtilisateurRequest, opts ...grpc.CallOption) (*CommandesResponse, error)
}

ServiceCommandeClient is the client API for ServiceCommande 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 ServiceCommandeServer

type ServiceCommandeServer interface {
	ValidateCommande(context.Context, *CommandeRequest) (*CommandeResponse, error)
	SubmitCommande(context.Context, *CommandeRequest) (*CommandeResponse, error)
	GetLastCommandes(context.Context, *LastCommandesRequest) (*CommandesResponse, error)
	GetUserCommandes(context.Context, *ByUtilisateurRequest) (*CommandesResponse, error)
	// contains filtered or unexported methods
}

ServiceCommandeServer is the server API for ServiceCommande service. All implementations must embed UnimplementedServiceCommandeServer for forward compatibility

type UnimplementedServiceCommandeServer

type UnimplementedServiceCommandeServer struct {
}

UnimplementedServiceCommandeServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceCommandeServer) GetLastCommandes

func (UnimplementedServiceCommandeServer) GetUserCommandes

func (UnimplementedServiceCommandeServer) SubmitCommande

func (UnimplementedServiceCommandeServer) ValidateCommande

type UnsafeServiceCommandeServer

type UnsafeServiceCommandeServer interface {
	// contains filtered or unexported methods
}

UnsafeServiceCommandeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceCommandeServer will result in compilation errors.

Jump to

Keyboard shortcuts

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