services

package
v0.0.0-...-dd40e37 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

type UserService struct {
	UserCollection *mongo.Collection
}

func NewUserService

func NewUserService(userCollection *mongo.Collection) *UserService

func (*UserService) AddToBag

func (s *UserService) AddToBag(c *fiber.Ctx) error

func (*UserService) CacheAllUsers

func (s *UserService) CacheAllUsers() bool

func (*UserService) CreateUser

func (s *UserService) CreateUser(c *fiber.Ctx) error

func (*UserService) FavoriteItem

func (s *UserService) FavoriteItem(c *fiber.Ctx) error

func (*UserService) FindUserByEmail

func (s *UserService) FindUserByEmail(c *fiber.Ctx) error

func (*UserService) GetAllUsers

func (s *UserService) GetAllUsers(c *fiber.Ctx) error

func (*UserService) GetUsersCache

func (s *UserService) GetUsersCache(c *fiber.Ctx) error

func (*UserService) RemoveFromBag

func (s *UserService) RemoveFromBag(c *fiber.Ctx) error

func (*UserService) UnfavoriteItem

func (s *UserService) UnfavoriteItem(c *fiber.Ctx) error

func (*UserService) UpdateUserOrder

func (s *UserService) UpdateUserOrder(c *fiber.Ctx) error

func (*UserService) UpsertUser

func (s *UserService) UpsertUser(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

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