Documentation ¶
Index ¶
- type Server
- func (server *Server) AddCartItem(ctx *gin.Context)
- func (server *Server) Checkout(ctx *gin.Context)
- func (server *Server) CreateProduct(ctx *gin.Context)
- func (server *Server) DeleteProductByID(ctx *gin.Context)
- func (server *Server) GetCartDetails(ctx *gin.Context)
- func (server *Server) GetProductByID(ctx *gin.Context)
- func (server *Server) GetProducts(ctx *gin.Context)
- func (server *Server) GetRepository() repository.Repository
- func (server *Server) GetRouter() *gin.Engine
- func (server *Server) GetTokenMaker() token.TokenMaker
- func (server *Server) Login(ctx *gin.Context)
- func (server *Server) Register(ctx *gin.Context)
- func (server *Server) RemoveCartItem(ctx *gin.Context)
- func (server *Server) RunDBMigration()
- func (server *Server) Start()
- func (server *Server) UpdateProduct(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddCartItem ¶
func (*Server) CreateProduct ¶
CreateProduct create a new product
func (*Server) DeleteProductByID ¶
DeleteProductByID delete a product by ID
func (*Server) GetCartDetails ¶
func (*Server) GetProductByID ¶
GetProductByID get a product by ID
func (*Server) GetProducts ¶
GetProducts get all products
func (*Server) GetRepository ¶
func (server *Server) GetRepository() repository.Repository
func (*Server) GetTokenMaker ¶
func (server *Server) GetTokenMaker() token.TokenMaker
func (*Server) RemoveCartItem ¶
func (*Server) RunDBMigration ¶
func (server *Server) RunDBMigration()
func (*Server) UpdateProduct ¶
UpdateProduct update a product
Click to show internal directories.
Click to hide internal directories.