handler

package
v0.0.0-...-4706098 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddToCartRequest

type AddToCartRequest struct {
	User     string `json:"user"`
	Item     string `json:"item"`
	Price    string `json:"price"`
	Quantity string `json:"quantity"`
}

type CartHandler

type CartHandler interface {
	MainHttpd()
	ShowItems() gin.HandlerFunc
	AddToCart() gin.HandlerFunc
	DeleteFromCart() gin.HandlerFunc
}

type DeleteFromCartRequest

type DeleteFromCartRequest struct {
	CartId string `json:"cart_id"`
}

type GetItemsRequest

type GetItemsRequest struct {
	User string `json:"user"`
}

type OrderFromCartRequest

type OrderFromCartRequest struct {
	User string `json:"user"`
}

Jump to

Keyboard shortcuts

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