Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
func Logger() gin.HandlerFunc
func Recovery ¶
func Recovery() gin.HandlerFunc
func RegisterAll ¶
func RegisterAll(group *gin.RouterGroup)
func RegisterHealth ¶
func RegisterHealth(group *gin.RouterGroup)
RegisterHealth is the sub-router for health
Types ¶
type GinRouter ¶
func (*GinRouter) ServeHTTP ¶
func (gr *GinRouter) ServeHTTP(w http.ResponseWriter, req *http.Request)
func (*GinRouter) Use ¶
func (gr *GinRouter) Use(middleware ...gin.HandlerFunc)
type Router ¶
type Router interface { http.Handler Use(middleware ...gin.HandlerFunc) ServeHTTP(w http.ResponseWriter, req *http.Request) Register() Run(addr ...string) error }
func NewGinRouter ¶
func NewGinRouter() Router
Click to show internal directories.
Click to hide internal directories.