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 NewContext ¶
func NewContext(c echo.Context) Context
Click to show internal directories.
Click to hide internal directories.