Documentation
¶
Index ¶
- func AddProductToCart(ctx context.Context, productCollection, userCollection *mongo.Collection, ...) error
- func BuyItemFromCart(ctx context.Context, userCollection *mongo.Collection, userID string) error
- func DBSet() *mongo.Client
- func InstantBuyer(ctx context.Context, productCollection, userCollection *mongo.Collection, ...) error
- func ProductData(client *mongo.Client, CollectionName string) *mongo.Collection
- func RemoveCartItem(ctx context.Context, productCollection, userCollection *mongo.Collection, ...) error
- func UserData(client *mongo.Client, CollectionName string) *mongo.Collection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProductToCart ¶
func BuyItemFromCart ¶
func InstantBuyer ¶
func ProductData ¶
func ProductData(client *mongo.Client, CollectionName string) *mongo.Collection
func RemoveCartItem ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.