Documentation ¶
Index ¶
- Constants
- func CreateCode(Phone, Country string, created bool) bool
- func CreateProduct(c *fiber.Ctx) error
- func CreateUser(c *fiber.Ctx) error
- func DeleteProduct(c *fiber.Ctx) error
- func DeleteUser(c *fiber.Ctx) error
- func Expires() time.Time
- func GenerateOTP(length int) string
- func GetProductById(c *fiber.Ctx) error
- func GetProducts(c *fiber.Ctx) error
- func GetUserInfo(c *fiber.Ctx) error
- func Login(c *fiber.Ctx) error
- func Logout(c *fiber.Ctx) error
- func SendMessage(Country, Phone, Message string) bool
- func UpdateProduct(c *fiber.Ctx) error
- func VerifyCode(c *fiber.Ctx) error
- type Code
- type Product
- type Session
- type User
Constants ¶
View Source
const SignupMessage = "[Jibr] Account successfully created! Thank you for choosing Jibr."
View Source
const SmsMessage = "[Jibr] Your verification code is: %s (valid for 15 minutes). Please do not share this code with anyone else."
Variables ¶
This section is empty.
Functions ¶
func CreateCode ¶
func CreateProduct ¶
func CreateProduct(c *fiber.Ctx) error
func CreateUser ¶
func CreateUser(c *fiber.Ctx) error
func DeleteProduct ¶
func DeleteProduct(c *fiber.Ctx) error
func DeleteUser ¶
func DeleteUser(c *fiber.Ctx) error
func GenerateOTP ¶
func GetProductById ¶
func GetProductById(c *fiber.Ctx) error
func GetProducts ¶
func GetProducts(c *fiber.Ctx) error
func GetUserInfo ¶
func GetUserInfo(c *fiber.Ctx) error
func SendMessage ¶
func UpdateProduct ¶
func UpdateProduct(c *fiber.Ctx) error
func VerifyCode ¶
func VerifyCode(c *fiber.Ctx) error
Types ¶
Click to show internal directories.
Click to hide internal directories.