Documentation ¶
Index ¶
- type UserService
- func (s *UserService) AddToBag(c *fiber.Ctx) error
- func (s *UserService) CacheAllUsers() bool
- func (s *UserService) CreateUser(c *fiber.Ctx) error
- func (s *UserService) FavoriteItem(c *fiber.Ctx) error
- func (s *UserService) FindUserByEmail(c *fiber.Ctx) error
- func (s *UserService) GetAllUsers(c *fiber.Ctx) error
- func (s *UserService) GetUsersCache(c *fiber.Ctx) error
- func (s *UserService) RemoveFromBag(c *fiber.Ctx) error
- func (s *UserService) UnfavoriteItem(c *fiber.Ctx) error
- func (s *UserService) UpdateUserOrder(c *fiber.Ctx) error
- func (s *UserService) UpsertUser(c *fiber.Ctx) error
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
Click to show internal directories.
Click to hide internal directories.