router

package
v0.0.0-...-5693655 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ANY

func ANY(path string, handlers ...gin.HandlerFunc)

func AddRoute

func AddRoute(method, path string, handlers ...gin.HandlerFunc)

func DELETE

func DELETE(path string, handlers ...gin.HandlerFunc)

func Engine

func Engine() *gin.Engine

func GET

func GET(path string, handlers ...gin.HandlerFunc)
func HEAD(path string, handlers ...gin.HandlerFunc)

func New

func New() *gin.Engine

func OPTIONS

func OPTIONS(path string, handlers ...gin.HandlerFunc)

func PATCH

func PATCH(path string, handlers ...gin.HandlerFunc)

func POST

func POST(path string, handlers ...gin.HandlerFunc)

func PUT

func PUT(path string, handlers ...gin.HandlerFunc)

Types

type Route

type Route struct {
	Path     string
	Method   string
	Handlers []gin.HandlerFunc
}

Jump to

Keyboard shortcuts

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