route

package
v0.0.0-...-e0474ae Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 12 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

func BodyErrorHandler

func BodyErrorHandler() gin.HandlerFunc

func CheckDBSession

func CheckDBSession(h echo.HandlerFunc) echo.HandlerFunc

func ErrorHandler

func ErrorHandler(h echo.HandlerFunc) echo.HandlerFunc

func HandleError

func HandleError(c echo.Context, e interface{})

func HeaderErrorHandler

func HeaderErrorHandler(h echo.HandlerFunc) echo.HandlerFunc

func InitHandler

func InitHandler(h echo.HandlerFunc) echo.HandlerFunc

Types

type BodyError

type BodyError struct {
	Success bool                   `json:"success"`
	Error   *model.ErrorMsgDefault `json:"error,omitempty"`
	Data    interface{}            `json:"data,omitempty"`
}

type CustomContext

type CustomContext struct {
	echo.Context
}

func (*CustomContext) Bar

func (c *CustomContext) Bar()

func (*CustomContext) Foo

func (c *CustomContext) Foo()

type Mean

type Mean struct {
	Echo *echo.Echo
}

func (Mean) Engine

func (m Mean) Engine() *Mean

type MeanErrorHandleType

type MeanErrorHandleType int
const (
	MeanErrorHandleTypeHeader MeanErrorHandleType = 1 + iota
	MeanErrorHandelTypeBody
)

Jump to

Keyboard shortcuts

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