route

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	dig.Out
	// gin.RouteInfo `group:"route"`
	RouteInfo `group:"route"`
}

Route 路由

func Any

func Any(path string, handlers ...gin.HandlerFunc) Route

func Connect

func Connect(path string, handlers ...gin.HandlerFunc) Route

func Delete

func Delete(path string, handlers ...gin.HandlerFunc) Route

func Get

func Get(path string, handlers ...gin.HandlerFunc) Route

func GetAndPost

func GetAndPost(path string, handlers ...gin.HandlerFunc) Route
func Head(path string, handlers ...gin.HandlerFunc) Route

func New

func New(method string, path string, handlers ...gin.HandlerFunc) Route

New 创建一个路由

func Options

func Options(path string, handlers ...gin.HandlerFunc) Route

func Patch

func Patch(path string, handlers ...gin.HandlerFunc) Route

func Post

func Post(path string, handlers ...gin.HandlerFunc) Route

func Put

func Put(path string, handlers ...gin.HandlerFunc) Route

func Trace

func Trace(path string, handlers ...gin.HandlerFunc) Route

type RouteInfo

type RouteInfo struct {
	Method string
	Path   string
	// Handler     string
	Handlers gin.HandlersChain
}

RouteInfo 路由信息

type Routes

type Routes []Route

路由集合

Jump to

Keyboard shortcuts

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