handlers

package
v0.0.0-...-cdbd578 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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 CreateCode(Phone, Country string, created bool) bool

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 Expires

func Expires() time.Time

func GenerateOTP

func GenerateOTP(length int) string

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 Login

func Login(c *fiber.Ctx) error

func Logout

func Logout(c *fiber.Ctx) error

func SendMessage

func SendMessage(Country, Phone, Message string) bool

func UpdateProduct

func UpdateProduct(c *fiber.Ctx) error

func VerifyCode

func VerifyCode(c *fiber.Ctx) error

Types

type Code

type Code model.Code

type Product

type Product model.Product

type Session

type Session model.Session

type User

type User model.User

func GetUser

func GetUser(sessionid guuid.UUID) (User, error)

Jump to

Keyboard shortcuts

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