package
0.7.0
Repository: https://github.com/yohobala/taurus_go.git
Documentation: pkg.go.dev

# Functions

请求信息日志中间件 会记录 请求时间、请求的ip、请求的url、请求的方法、状态码、响应时间.
初始化路由 会遍历所有注册的API,执行SetApi方法.
注册一个http服务下的一个路由 如果重复传入会触发panic 示例: type Apier struct { } func (a Apier) SetApi(router *gin.Engine) { create(router) } func init() { router.Register("service","code","v1", &Apier{}) } func create(router *gin.Engine) { router.GET("/create", func(c *gin.Context) { c.String(http.StatusOK, "user") }) } 实际url为:code/v1/create.

# Structs

No description provided by the author

# Interfaces

路由接口.