controllers

package
v0.0.0-...-6eca15d Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Access  *utils.Accesser
	Session *handler.Session
}

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.

Jump to

Keyboard shortcuts

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