controller

package
v0.0.0-...-0874fcc Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Token = utils.NewToken()

Functions

func NewAdmin

func NewAdmin() I.IAdmin

func NewProduct

func NewProduct() I.IProduct

func NewUserFunc

func NewUserFunc() I.IUser

Types

type Admin

type Admin struct{}

func (*Admin) AdminRefresh

func (*Admin) AdminRefresh(c *fiber.Ctx) error

func (*Admin) DeliveryStatusUpdate

func (*Admin) DeliveryStatusUpdate(c *fiber.Ctx) error

func (*Admin) Login

func (*Admin) Login(c *fiber.Ctx) error

func (*Admin) Logout

func (*Admin) Logout(c *fiber.Ctx) error

func (*Admin) ManageUser

func (*Admin) ManageUser(c *fiber.Ctx) error

func (*Admin) Signup

func (*Admin) Signup(c *fiber.Ctx) error

func (*Admin) UserManagement

func (*Admin) UserManagement(c *fiber.Ctx) error

func (*Admin) Validate

func (*Admin) Validate(c *fiber.Ctx) error

func (*Admin) ViewOrders

func (*Admin) ViewOrders(c *fiber.Ctx) error

func (*Admin) ViewUsers

func (*Admin) ViewUsers(c *fiber.Ctx) error

type Products

type Products struct{}

func (*Products) AddProducts

func (*Products) AddProducts(c *fiber.Ctx) error

func (*Products) DelProduct

func (*Products) DelProduct(c *fiber.Ctx) error

func (*Products) GetbyCategory

func (*Products) GetbyCategory(c *fiber.Ctx) error

func (*Products) SearchProduct

func (*Products) SearchProduct(c *fiber.Ctx) error

func (*Products) UpdatePro

func (*Products) UpdatePro(c *fiber.Ctx) error

func (*Products) ViewProducts

func (*Products) ViewProducts(c *fiber.Ctx) error

type User

type User struct{}

func (*User) AddToCart

func (*User) AddToCart(c *fiber.Ctx) error

func (*User) Checkout

func (*User) Checkout(c *fiber.Ctx) error

func (*User) EditUserInfo

func (*User) EditUserInfo(c *fiber.Ctx) error

func (*User) First

func (*User) First(c *fiber.Ctx) error

func (*User) GenerateInvoice

func (*User) GenerateInvoice(c *fiber.Ctx) error

func (*User) Home

func (*User) Home(c *fiber.Ctx) error

func (*User) OrderFromCart

func (*User) OrderFromCart(c *fiber.Ctx) error

func (*User) Refresh

func (*User) Refresh(c *fiber.Ctx) error

func (*User) RemoveFromCart

func (*User) RemoveFromCart(c *fiber.Ctx) error

func (*User) UserLogin

func (*User) UserLogin(c *fiber.Ctx) error

func (*User) UserLogout

func (*User) UserLogout(c *fiber.Ctx) error

func (*User) UserSignup

func (*User) UserSignup(c *fiber.Ctx) error

func (*User) Verification

func (*User) Verification(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

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