cart

package
v0.0.0-...-2923761 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(store types.OrderStore, productStore types.ProductStore, userStore types.UserStore) *Handler

func (*Handler) CreateOrderFromCart

func (h *Handler) CreateOrderFromCart(products []types.Product, items []types.CartItem, userId int) (int, float64, error)

func (*Handler) RegisterRoutes

func (h *Handler) RegisterRoutes(mux *http.ServeMux, prefixPath string)

Jump to

Keyboard shortcuts

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