controllers

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

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

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 (*PositionsController) GetEdit

func (*PositionsController) GetNew

func (*PositionsController) List

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

type ProductsController

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

func (*ProductsController) Create

func (*ProductsController) GetEdit

func (*ProductsController) GetNew

func (*ProductsController) List

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 (*UnitsController) PostEdit

func (c *UnitsController) PostEdit(w http.ResponseWriter, r *http.Request)

func (*UnitsController) Register

func (c *UnitsController) Register(r *mux.Router)

Jump to

Keyboard shortcuts

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