admin

package
v0.0.0-...-4efb1cb Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminEditInventoryItemRecord

type AdminEditInventoryItemRecord struct {
	Quantity int
	SKU      string
	Title    string
	Barcode  string
}

type AdminEditInventoryRecord

type AdminEditInventoryRecord struct {
	ID        int
	UserID    int
	Name      string
	Items     []AdminEditInventoryItemRecord
	IsDeleted bool
}

type AdminHandler

type AdminHandler struct {
	*deps.Deps
}

func NewHandler

func NewHandler(deps *deps.Deps) *AdminHandler

func (*AdminHandler) AddInventory

func (ah *AdminHandler) AddInventory(w http.ResponseWriter, r *http.Request)

func (*AdminHandler) DeleteInventory

func (ah *AdminHandler) DeleteInventory(w http.ResponseWriter, r *http.Request)

func (*AdminHandler) DeleteUser

func (ah *AdminHandler) DeleteUser(w http.ResponseWriter, r *http.Request)

func (*AdminHandler) EditInventory

func (ah *AdminHandler) EditInventory(w http.ResponseWriter, r *http.Request)

func (*AdminHandler) EditUser

func (ah *AdminHandler) EditUser(w http.ResponseWriter, r *http.Request)

func (*AdminHandler) ListInventories

func (ah *AdminHandler) ListInventories(w http.ResponseWriter, r *http.Request)

func (*AdminHandler) ListUsers

func (ah *AdminHandler) ListUsers(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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