router

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

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

func (*Group) GET

func (g *Group) GET(relativePath string, handle HandleFuncWrap, middleware ...gin.HandlerFunc)

func (*Group) POST

func (g *Group) POST(relativePath string, handle HandleFuncWrap, middleware ...gin.HandlerFunc)

func (*Group) Use

func (g *Group) Use(middleware ...gin.HandlerFunc)

type HandleFuncWrap

type HandleFuncWrap func(c *gin.Context) (interface{}, error)

type Router

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

func GetRouter

func GetRouter(e *gin.Engine) *Router

func (*Router) GET

func (r *Router) GET(relativePath string, handle HandleFuncWrap, middleware ...gin.HandlerFunc)

func (*Router) Group

func (r *Router) Group(relativePath string) *Group

func (*Router) POST

func (r *Router) POST(relativePath string, handle HandleFuncWrap, middleware ...gin.HandlerFunc)

func (*Router) RegisterRouter

func (r *Router) RegisterRouter(e *gin.Engine)

func (*Router) Use

func (r *Router) Use(middleware ...gin.HandlerFunc)

Jump to

Keyboard shortcuts

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