controllers

package
v0.0.0-...-dfd09ec Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
	// contains filtered or unexported fields
}

func NewAuthController

func NewAuthController(db *gorm.DB) *AuthController

func (*AuthController) SignIn

func (authController *AuthController) SignIn(c *gin.Context)

func (*AuthController) SignUp

func (authController *AuthController) SignUp(c *gin.Context)

type CategoryController

type CategoryController struct {
	// contains filtered or unexported fields
}

func NewCategoryController

func NewCategoryController(db *gorm.DB) *CategoryController

func (CategoryController) AddCategory

func (categoryController CategoryController) AddCategory(c *gin.Context)

func (CategoryController) GetAllCategories

func (categoryController CategoryController) GetAllCategories(c *gin.Context)

type ProductController

type ProductController struct {
	// contains filtered or unexported fields
}

func NewProductController

func NewProductController(db *gorm.DB) *ProductController

func (ProductController) GetAllProductsByPagination

func (productController ProductController) GetAllProductsByPagination(c *gin.Context)

type Tokens

type Tokens struct {
	AccessToken  string `json:"accesstoken"`
	RefreshToken string `json:"refreshtoken"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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