controllers

package
v0.0.0-...-40108c5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2016 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvalidObjectId

type InvalidObjectId string

func (InvalidObjectId) Error

func (e InvalidObjectId) Error() string

type NotFoundObjectId

type NotFoundObjectId string

func (NotFoundObjectId) Error

func (e NotFoundObjectId) Error() string

type ProductController

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

func NewProductController

func NewProductController(db *mgo.Database) *ProductController

func (*ProductController) CreateProduct

func (self *ProductController) CreateProduct(
	w http.ResponseWriter,
	r *http.Request,
)

func (*ProductController) GetProduct

func (self *ProductController) GetProduct(
	w http.ResponseWriter,
	r *http.Request,
)

func (*ProductController) GetProductList

func (self *ProductController) GetProductList(
	w http.ResponseWriter,
	r *http.Request,
)

func (*ProductController) RemoveProduct

func (self *ProductController) RemoveProduct(
	w http.ResponseWriter,
	r *http.Request,
)

func (*ProductController) Routes

func (self *ProductController) Routes() rest.Routes

func (*ProductController) UpdateProduct

func (self *ProductController) UpdateProduct(
	w http.ResponseWriter,
	r *http.Request,
)

type TechnologyController

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

func NewTechnologyController

func NewTechnologyController(db *mgo.Database) *TechnologyController

func (*TechnologyController) GetTechnologyList

func (self *TechnologyController) GetTechnologyList(
	w http.ResponseWriter,
	r *http.Request,
)

func (*TechnologyController) Routes

func (self *TechnologyController) Routes() rest.Routes

type VendorController

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

func NewVendorController

func NewVendorController(db *mgo.Database) *VendorController

func (*VendorController) CreateVendor

func (self *VendorController) CreateVendor(
	w http.ResponseWriter,
	r *http.Request,
)

func (*VendorController) GetVendor

func (self *VendorController) GetVendor(
	w http.ResponseWriter,
	r *http.Request,
)

func (*VendorController) GetVendorList

func (self *VendorController) GetVendorList(
	w http.ResponseWriter,
	r *http.Request,
)

func (*VendorController) RemoveVendor

func (self *VendorController) RemoveVendor(
	w http.ResponseWriter,
	r *http.Request,
)

func (*VendorController) Routes

func (self *VendorController) Routes() rest.Routes

func (*VendorController) UpdateVendor

func (self *VendorController) UpdateVendor(
	w http.ResponseWriter,
	r *http.Request,
)

Jump to

Keyboard shortcuts

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