middlewares

package
v0.0.0-...-fc1e0a8 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ErrInvalidContext = rserrors.Error("invalid context")

Variables

This section is empty.

Functions

func ErrorHandleMiddleware

func ErrorHandleMiddleware(err error, c echo.Context)

func ReplaceContextMiddleware

func ReplaceContextMiddleware(next echo.HandlerFunc) echo.HandlerFunc

Types

type Context

type Context interface {
	echo.Context
	SetTx(transaction rsdb.Connection) error
	GetTx() (rsdb.Connection, error)
	Language() string
	QueryParamInt64(name string, defaultInt int64) (int64, error)
	ParamInt64(name string) (int64, error)
}

func ConvertToCustomContext

func ConvertToCustomContext(c echo.Context) (Context, error)

func NewContext

func NewContext(c echo.Context) Context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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