ginsvr

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJsonParam added in v1.2.2

func ParseJsonParam[T interface{}](c *gin.Context, fn ...func(*gin.Context, error)) (T, bool)

func ParseQueryParam added in v1.2.2

func ParseQueryParam[T interface{}](c *gin.Context) (T, bool)

func ParseXMLParam added in v1.2.2

func ParseXMLParam[T interface{}](c *gin.Context) (T, bool)

func Recovery

func Recovery() gin.HandlerFunc

Types

type Handler

type Handler interface {
	Prefix() string
	Middlewares() []gin.HandlerFunc
	Routers() []Router
}

type Router

type Router struct {
	Method string
	Path   string
	Handle []gin.HandlerFunc
}

func NewRouter

func NewRouter(method, path string, handles ...gin.HandlerFunc) Router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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