ginmid

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors() gin.HandlerFunc

func Log

func Log(logLevel int8) gin.HandlerFunc

func NoRoute

func NoRoute() gin.HandlerFunc

404页面

func Panic

func Panic() gin.HandlerFunc

Panic 业务抛出PANIC时处理

func Sentinel

func Sentinel() gin.HandlerFunc

Sentinel 限流

func TimeoutMiddleware

func TimeoutMiddleware(timeout time.Duration) func(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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