Documentation ¶
Index ¶
- type Controller
- func (c *Controller) Connect(eC echo.Context) error
- func (c *Controller) Delete(eC echo.Context) error
- func (c *Controller) Get(eC echo.Context) error
- func (c *Controller) Head(eC echo.Context) error
- func (c *Controller) Options(eC echo.Context) error
- func (c *Controller) Patch(eC echo.Context) error
- func (c *Controller) Post(eC echo.Context) error
- func (c *Controller) Put(eC echo.Context) error
- func (c *Controller) Trace(eC echo.Context) error
- type ControllerInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller is the base type of controllers in the 2016site architecture.
func GetController ¶
func GetController(accesser *utils.Accesser, session *handler.Session) Controller
func (*Controller) Connect ¶
func (c *Controller) Connect(eC echo.Context) error
Connect handles a HTTP CONNECT request.
Unless overridden, controllers refuse this method.
func (*Controller) Delete ¶
func (c *Controller) Delete(eC echo.Context) error
Delete handles a HTTP DELETE request.
Unless overridden, controllers refuse this method.
func (*Controller) Get ¶
func (c *Controller) Get(eC echo.Context) error
Get handles a HTTP GET request.
Unless overridden, controllers refuse this method.
func (*Controller) Head ¶
func (c *Controller) Head(eC echo.Context) error
Head handles a HTTP HEAD request.
Unless overridden, controllers refuse this method.
func (*Controller) Options ¶
func (c *Controller) Options(eC echo.Context) error
Options handles a HTTP OPTIONS request.
Unless overridden, controllers refuse this method.
func (*Controller) Patch ¶
func (c *Controller) Patch(eC echo.Context) error
Patch handles a HTTP PATCH request.
Unless overridden, controllers refuse this method.
func (*Controller) Post ¶
func (c *Controller) Post(eC echo.Context) error
Post handles a HTTP POST request.
Unless overridden, controllers refuse this method.
func (*Controller) Put ¶
func (c *Controller) Put(eC echo.Context) error
Put handles a HTTP PUT request.
Unless overridden, controllers refuse this method.
func (*Controller) Trace ¶
func (c *Controller) Trace(eC echo.Context) error
Trace handles a HTTP TRACE request.
Unless overridden, controllers refuse this method.
type ControllerInterface ¶
type ControllerInterface interface { Get() //method = GET processing Post() //method = POST processing Delete() //method = DELETE processing Put() //method = PUT handling Head() //method = HEAD processing Patch() //method = PATCH treatment Options() //method = OPTIONS processing Connect() //method = CONNECT processing Trace() //method = TRACE processing }
ControllerInterface is the interface to which controllers adhere.