Documentation ¶
Index ¶
- func HealthCheck(c *fiber.Ctx) error
- func RequestUser(c *fiber.Ctx) *models.User
- func SetupRoutes(app *fiber.App, db *gorm.DB)
- func SuccessResponse(message string) schemas.ResponseSchema
- func ValidateRequest(c *fiber.Ctx, data interface{}) (*int, *utils.ErrorResponse)
- type CreateCheckOutSchema
- type Endpoint
- func (endpoint Endpoint) CreateCheckoutSession(c *fiber.Ctx) error
- func (endpoint Endpoint) CreateNewProduct(c *fiber.Ctx) error
- func (endpoint Endpoint) CreateNewReview(c *fiber.Ctx) error
- func (endpoint Endpoint) CreatePaymentIntent(c *fiber.Ctx) error
- func (endpoint Endpoint) DeleteMe(c *fiber.Ctx) error
- func (endpoint Endpoint) DeleteProduct(c *fiber.Ctx) error
- func (endpoint Endpoint) FindProductById(c *fiber.Ctx) error
- func (endpoint Endpoint) FindProductBySlug(c *fiber.Ctx) error
- func (endpoint Endpoint) GetAllProducts(c *fiber.Ctx) error
- func (endpoint Endpoint) GetAllUsers(c *fiber.Ctx) error
- func (endpoint Endpoint) GetUserByParamsID(c *fiber.Ctx) error
- func (endpoint Endpoint) GoogleCallback(c *fiber.Ctx) error
- func (endpoint Endpoint) GoogleLogin(c *fiber.Ctx) error
- func (endpoint Endpoint) HandleStripeWebhook(c *fiber.Ctx) error
- func (endpoint Endpoint) Login(c *fiber.Ctx) error
- func (endpoint Endpoint) LoginWithOtp(c *fiber.Ctx) error
- func (endpoint Endpoint) Logout(c *fiber.Ctx) error
- func (endpoint Endpoint) Refresh(c *fiber.Ctx) error
- func (endpoint Endpoint) Register(c *fiber.Ctx) error
- func (endpoint Endpoint) ResendVerificationEmail(c *fiber.Ctx) error
- func (endpoint Endpoint) SendLoginOtp(c *fiber.Ctx) error
- func (endpoint Endpoint) SendPasswordResetOtp(c *fiber.Ctx) error
- func (endpoint Endpoint) SendUserEmailChangeOtp(c *fiber.Ctx) error
- func (endpoint Endpoint) SetNewPassword(c *fiber.Ctx) error
- func (endpoint Endpoint) SetProductDiscount(c *fiber.Ctx) error
- func (endpoint Endpoint) UpdateMe(c *fiber.Ctx) error
- func (endpoint Endpoint) UpdateProductDetails(c *fiber.Ctx) error
- func (endpoint Endpoint) UpdateProductStock(c *fiber.Ctx) error
- func (endpoint Endpoint) UpdateSignedInUserPassword(c *fiber.Ctx) error
- func (endpoint Endpoint) UpdateUserEmail(c *fiber.Ctx) error
- func (endpoint Endpoint) ValidateMe(c *fiber.Ctx) error
- func (endpoint Endpoint) VerifyAccount(c *fiber.Ctx) error
- type HealthCheckSchema
- type OrderItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheck ¶
func HealthCheck(c *fiber.Ctx) error
@Summary HealthCheck @Description This endpoint checks the health of our application. @Tags HealthCheck @Success 200 {object} HealthCheckSchema @Router /healthcheck [get]
func RequestUser ¶
func SetupRoutes ¶
func SuccessResponse ¶
func SuccessResponse(message string) schemas.ResponseSchema
func ValidateRequest ¶
func ValidateRequest(c *fiber.Ctx, data interface{}) (*int, *utils.ErrorResponse)
Types ¶
type CreateCheckOutSchema ¶
type CreateCheckOutSchema struct {
Orders []OrderItem `json:"orders"`
}
type Endpoint ¶
func (Endpoint) CreateCheckoutSession ¶
func (Endpoint) CreateNewProduct ¶
func (Endpoint) CreateNewReview ¶
func (Endpoint) CreatePaymentIntent ¶
func (Endpoint) DeleteProduct ¶
func (Endpoint) FindProductById ¶
func (Endpoint) FindProductBySlug ¶
func (Endpoint) GetAllProducts ¶
func (Endpoint) GetAllUsers ¶
func (Endpoint) GetUserByParamsID ¶
func (Endpoint) GoogleCallback ¶
func (Endpoint) GoogleLogin ¶
func (Endpoint) HandleStripeWebhook ¶
func (Endpoint) LoginWithOtp ¶
func (Endpoint) ResendVerificationEmail ¶
func (Endpoint) SendLoginOtp ¶
func (Endpoint) SendPasswordResetOtp ¶
func (Endpoint) SendUserEmailChangeOtp ¶
func (Endpoint) SetNewPassword ¶
func (Endpoint) SetProductDiscount ¶
func (Endpoint) UpdateProductDetails ¶
func (Endpoint) UpdateProductStock ¶
func (Endpoint) UpdateSignedInUserPassword ¶
func (Endpoint) UpdateUserEmail ¶
func (Endpoint) ValidateMe ¶
func (Endpoint) VerifyAccount ¶
type HealthCheckSchema ¶
type HealthCheckSchema struct {
Success string `json:"success" example:"pong"`
}
Click to show internal directories.
Click to hide internal directories.