handler

package
v0.24.6 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleHTTPError

func HandleHTTPError(err error) *echo.HTTPError

HandleHTTPError does what it says

Types

type CObject

type CObject interface {
	web.CRUDable
	web.Rights
}

CObject is the definition of our object, holds the structs

type WebHandler

type WebHandler struct {
	EmptyStruct func() CObject
}

WebHandler defines the webhandler object This does web stuff, aka returns json etc. Uses CRUDable Methods to get the data

func (*WebHandler) CreateWeb

func (c *WebHandler) CreateWeb(ctx echo.Context) error

CreateWeb is the handler to create an object

func (*WebHandler) DeleteWeb

func (c *WebHandler) DeleteWeb(ctx echo.Context) error

DeleteWeb is the web handler to delete something

func (*WebHandler) ReadAllWeb

func (c *WebHandler) ReadAllWeb(ctx echo.Context) error

ReadAllWeb is the webhandler to get all objects of a type

func (*WebHandler) ReadOneWeb

func (c *WebHandler) ReadOneWeb(ctx echo.Context) error

ReadOneWeb is the webhandler to get one object

func (*WebHandler) UpdateWeb

func (c *WebHandler) UpdateWeb(ctx echo.Context) error

UpdateWeb is the webhandler to update an object

Jump to

Keyboard shortcuts

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