package
1.2.7
Repository: https://github.com/xinliangnote/go-gin-api.git
Documentation: pkg.go.dev

# Functions

AliasForRecordMetrics 对请求uri起个别名,用于prometheus记录指标。 如:Get /user/:username 这样的uri,因为username会有非常多的情况,这样记录prometheus指标会非常的不有好。.
No description provided by the author
No description provided by the author
WithDisablePProf 禁用 pprof.
WithDisablePrometheus 禁用prometheus.
WithDisableSwagger 禁用 swagger.
WithEnableCors 开启CORS.
WithEnableOpenBrowser 启动后在浏览器中打开 uri.
No description provided by the author
WithPanicNotify 设置panic时的通知回调.
WithRecordMetrics 设置记录prometheus记录指标回调.
WrapAuthHandler 用来处理 Auth 的入口,在之后的handler中只需 ctx.UserID() ctx.UserName() 即可。.

# Structs

No description provided by the author

# Interfaces

No description provided by the author
IRoutes 包装gin的IRoutes.
Mux http mux.
RouterGroup 包装gin的RouterGroup.

# Type aliases

No description provided by the author
OnPanicNotify 发生panic时通知用.
No description provided by the author
RecordMetrics 记录prometheus指标用 如果使用AliasForRecordMetrics配置了别名,uri将被替换为别名。.
No description provided by the author