Documentation ¶
Index ¶
- func NewPositionsController(app application.Application) application.Controller
- func NewProductsController(app application.Application) application.Controller
- func NewUnitsController(app application.Application) application.Controller
- type PaginatedResponse
- type PositionPaginatedResponse
- type PositionsController
- func (c *PositionsController) Create(w http.ResponseWriter, r *http.Request)
- func (c *PositionsController) GetEdit(w http.ResponseWriter, r *http.Request)
- func (c *PositionsController) GetNew(w http.ResponseWriter, r *http.Request)
- func (c *PositionsController) List(w http.ResponseWriter, r *http.Request)
- func (c *PositionsController) PostEdit(w http.ResponseWriter, r *http.Request)
- func (c *PositionsController) Register(r *mux.Router)
- func (c *PositionsController) Search(w http.ResponseWriter, r *http.Request)
- type ProductsController
- func (c *ProductsController) Create(w http.ResponseWriter, r *http.Request)
- func (c *ProductsController) GetEdit(w http.ResponseWriter, r *http.Request)
- func (c *ProductsController) GetNew(w http.ResponseWriter, r *http.Request)
- func (c *ProductsController) List(w http.ResponseWriter, r *http.Request)
- func (c *ProductsController) PostEdit(w http.ResponseWriter, r *http.Request)
- func (c *ProductsController) Register(r *mux.Router)
- type UnitPaginatedResponse
- type UnitsController
- func (c *UnitsController) Create(w http.ResponseWriter, r *http.Request)
- func (c *UnitsController) Delete(w http.ResponseWriter, r *http.Request)
- func (c *UnitsController) GetEdit(w http.ResponseWriter, r *http.Request)
- func (c *UnitsController) GetNew(w http.ResponseWriter, r *http.Request)
- func (c *UnitsController) List(w http.ResponseWriter, r *http.Request)
- func (c *UnitsController) PostEdit(w http.ResponseWriter, r *http.Request)
- func (c *UnitsController) Register(r *mux.Router)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPositionsController ¶
func NewPositionsController(app application.Application) application.Controller
func NewProductsController ¶
func NewProductsController(app application.Application) application.Controller
func NewUnitsController ¶
func NewUnitsController(app application.Application) application.Controller
Types ¶
type PaginatedResponse ¶
type PaginatedResponse struct { Products []*viewmodels.Product PaginationState *pagination.State }
type PositionPaginatedResponse ¶
type PositionPaginatedResponse struct { Positions []*viewmodels.Position PaginationState *pagination.State }
type PositionsController ¶
type PositionsController struct {
// contains filtered or unexported fields
}
func (*PositionsController) Create ¶
func (c *PositionsController) Create(w http.ResponseWriter, r *http.Request)
func (*PositionsController) GetEdit ¶
func (c *PositionsController) GetEdit(w http.ResponseWriter, r *http.Request)
func (*PositionsController) GetNew ¶
func (c *PositionsController) GetNew(w http.ResponseWriter, r *http.Request)
func (*PositionsController) List ¶
func (c *PositionsController) List(w http.ResponseWriter, r *http.Request)
func (*PositionsController) PostEdit ¶
func (c *PositionsController) PostEdit(w http.ResponseWriter, r *http.Request)
func (*PositionsController) Register ¶
func (c *PositionsController) Register(r *mux.Router)
func (*PositionsController) Search ¶
func (c *PositionsController) Search(w http.ResponseWriter, r *http.Request)
type ProductsController ¶
type ProductsController struct {
// contains filtered or unexported fields
}
func (*ProductsController) Create ¶
func (c *ProductsController) Create(w http.ResponseWriter, r *http.Request)
func (*ProductsController) GetEdit ¶
func (c *ProductsController) GetEdit(w http.ResponseWriter, r *http.Request)
func (*ProductsController) GetNew ¶
func (c *ProductsController) GetNew(w http.ResponseWriter, r *http.Request)
func (*ProductsController) List ¶
func (c *ProductsController) List(w http.ResponseWriter, r *http.Request)
func (*ProductsController) PostEdit ¶
func (c *ProductsController) PostEdit(w http.ResponseWriter, r *http.Request)
func (*ProductsController) Register ¶
func (c *ProductsController) Register(r *mux.Router)
type UnitPaginatedResponse ¶
type UnitPaginatedResponse struct { Units []*viewmodels.Unit PaginationState *pagination.State }
type UnitsController ¶
type UnitsController struct {
// contains filtered or unexported fields
}
func (*UnitsController) Create ¶
func (c *UnitsController) Create(w http.ResponseWriter, r *http.Request)
func (*UnitsController) Delete ¶
func (c *UnitsController) Delete(w http.ResponseWriter, r *http.Request)
func (*UnitsController) GetEdit ¶
func (c *UnitsController) GetEdit(w http.ResponseWriter, r *http.Request)
func (*UnitsController) GetNew ¶
func (c *UnitsController) GetNew(w http.ResponseWriter, r *http.Request)
func (*UnitsController) List ¶
func (c *UnitsController) List(w http.ResponseWriter, r *http.Request)
func (*UnitsController) PostEdit ¶
func (c *UnitsController) PostEdit(w http.ResponseWriter, r *http.Request)
func (*UnitsController) Register ¶
func (c *UnitsController) Register(r *mux.Router)
Click to show internal directories.
Click to hide internal directories.