route

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(routes []*Route, efunc ErrorCodeFunc)

Bind TODO

func HandleError

func HandleError(f HandlerFunc, efunc ErrorCodeFunc) gin.HandlerFunc

HandleError TODO

Types

type ErrorCodeFunc

type ErrorCodeFunc func(err error) int

ErrorCodeFunc TODO

type HandlerFunc

type HandlerFunc func(*gin.Context) (sth.Result, error)

HandlerFunc TODO

type IRouteFunc

type IRouteFunc func(string, ...gin.HandlerFunc) gin.IRoutes

IRouteFunc TODO

type Route

type Route struct {
	// contains filtered or unexported fields
}

Route TODO

func New

func New(metodFunc IRouteFunc, relativePath string, handlerFunc HandlerFunc) *Route

New TODO

func (*Route) Bind

func (route *Route) Bind(efunc ErrorCodeFunc)

Bind TODO

Jump to

Keyboard shortcuts

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