ginplus

package
v0.0.0-...-64e5d5b Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const FindGroupURLByNameMaxDeep = 20
View Source
const MinSupportGoMajor = 1
View Source
const MinSupportGoMinor = 23
View Source
const NameEniger = "eniger"

Variables

This section is empty.

Functions

func Forwarded

func Forwarded() gin.HandlerFunc

func Recover

func Recover() gin.HandlerFunc

func Writer

func Writer() gin.HandlerFunc

Types

type Router

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

func NewEngine

func NewEngine() (*Router, error)

func (*Router) DebugMsg

func (r *Router) DebugMsg(format string, values ...any)

func (*Router) FindGroupURLByName

func (r *Router) FindGroupURLByName(name string) (string, bool)

func (*Router) FindRouter

func (r *Router) FindRouter(NotFound gin.HandlerFunc, NotMethod gin.HandlerFunc)

func (*Router) FindURLByHandler

func (r *Router) FindURLByHandler(handler gin.HandlerFunc, method string) (string, bool)

func (*Router) GET

func (e *Router) GET(relativePath string, handler gin.HandlerFunc)

func (*Router) Group

func (e *Router) Group(relativePath string, name ...string) *Router

func (*Router) NotRouter

func (r *Router) NotRouter(NotFound gin.HandlerFunc, NotMethod gin.HandlerFunc)

func (*Router) OPTIONS

func (e *Router) OPTIONS(relativePath string, handler gin.HandlerFunc)

func (*Router) POST

func (e *Router) POST(relativePath string, handler gin.HandlerFunc)

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(wri http.ResponseWriter, req *http.Request)

func (*Router) Use

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

Jump to

Keyboard shortcuts

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