handler

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetHandlerFunc

func AssetHandlerFunc(h http.Handler) echo.HandlerFunc

AssetHandlerFunc handles asset files

func CookieAuthMiddleware

func CookieAuthMiddleware(next echo.HandlerFunc) echo.HandlerFunc

CookieAuthMiddleware middleware handler for cookie authentication

func EnvContextMiddleware

func EnvContextMiddleware(next echo.HandlerFunc) echo.HandlerFunc

EnvContextMiddleware this is a custom echo context, representing the environment context it must be the first middleware, which is registered

func HandleAPICreate

func HandleAPICreate(c echo.Context) error

HandleAPICreate ...

func HandleAPICreateAll

func HandleAPICreateAll(c echo.Context) error

HandleAPICreateAll ...

func HandleAPIDelete

func HandleAPIDelete(c echo.Context) error

HandleAPIDelete ...

func HandleAPILogin

func HandleAPILogin(c echo.Context) error

HandleApiLogin handles login to api and returns a JWT token

func HandleAPIUpdate

func HandleAPIUpdate(c echo.Context) error

HandleAPIUpdate ...

func HandleCreateUser

func HandleCreateUser(c echo.Context) error

HandleCreateUser own handler instead of using HandleEntityNew

func HandleEntityDelete

func HandleEntityDelete(c echo.Context) error

HandleEntityDelete ...

func HandleEntityEdit

func HandleEntityEdit(c echo.Context) error

HandleEntityEdit ...

func HandleEntityList

func HandleEntityList(c echo.Context) error

HandleEntityList ...

func HandleEntityListAjax

func HandleEntityListAjax(c echo.Context) error

HandleEntityListAjax ...

func HandleEntityNew

func HandleEntityNew(c echo.Context) error

HandleEntityNew ...

func HandleFavicon

func HandleFavicon(c echo.Context) error

HandleFavicon ...

func HandleHealth

func HandleHealth(c echo.Context) error

HandleHealth ...

func HandleLogin

func HandleLogin(c echo.Context) error

HandleLogin ...

func HandleLogout

func HandleLogout(c echo.Context) error

HandleLogout ...

func HandleOptionListAjax

func HandleOptionListAjax(c echo.Context) error

HandleOptionListAjax ...

func HandlePage1

func HandlePage1(c echo.Context) error

HandlePage1 ...

func HandlePageDefault

func HandlePageDefault(c echo.Context) error

HandlePageDefault ...

func HandleSpa

func HandleSpa(c echo.Context) error

HandleSpa start single page app (vue)

func HandleStartApp

func HandleStartApp(c echo.Context) error

HandleStartApp ...

func JWTAuthSkipper

func JWTAuthSkipper(c echo.Context) bool

JWTAuthSkipper returns true for URL's, that do not need token authentication

func LoggingDefaultHTTPErrorHandler

func LoggingDefaultHTTPErrorHandler(err error, c echo.Context)

func RequestLoggingMiddleware

func RequestLoggingMiddleware(next echo.HandlerFunc) echo.HandlerFunc

RequestLoggingMiddleware ...

func SimpleLoggingHTTPErrorHandler

func SimpleLoggingHTTPErrorHandler(err error, c echo.Context)

func TokenLoggingMiddleware

func TokenLoggingMiddleware(next echo.HandlerFunc) echo.HandlerFunc

TokenLoggingMiddleware ...

Types

type LoginData

type LoginData struct {
	User string
	Pass string
}

Jump to

Keyboard shortcuts

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