Documentation ¶
Index ¶
- type InvalidObjectId
- type NotFoundObjectId
- type ProductController
- func (self *ProductController) CreateProduct(w http.ResponseWriter, r *http.Request)
- func (self *ProductController) GetProduct(w http.ResponseWriter, r *http.Request)
- func (self *ProductController) GetProductList(w http.ResponseWriter, r *http.Request)
- func (self *ProductController) RemoveProduct(w http.ResponseWriter, r *http.Request)
- func (self *ProductController) Routes() rest.Routes
- func (self *ProductController) UpdateProduct(w http.ResponseWriter, r *http.Request)
- type TechnologyController
- type VendorController
- func (self *VendorController) CreateVendor(w http.ResponseWriter, r *http.Request)
- func (self *VendorController) GetVendor(w http.ResponseWriter, r *http.Request)
- func (self *VendorController) GetVendorList(w http.ResponseWriter, r *http.Request)
- func (self *VendorController) RemoveVendor(w http.ResponseWriter, r *http.Request)
- func (self *VendorController) Routes() rest.Routes
- func (self *VendorController) UpdateVendor(w http.ResponseWriter, r *http.Request)
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, )
Click to show internal directories.
Click to hide internal directories.