Documentation ¶
Index ¶
- type Conf
- type Option
- type Route
- type Server
- func (e *Server) AddRoute(route Route)
- func (e *Server) AddRouteUse(route Route, next gin.HandlerFunc)
- func (e *Server) AddRoutes(routes []Route)
- func (e *Server) AddRoutesUse(routes []Route, next gin.HandlerFunc)
- func (e *Server) GetEngine() *gin.Engine
- func (e *Server) Start()
- func (e *Server) Stop()
- func (e *Server) Use(next gin.HandlerFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server Server
func (*Server) AddRouteUse ¶
func (e *Server) AddRouteUse(route Route, next gin.HandlerFunc)
AddRouteUse 添加路由
func (*Server) AddRoutesUse ¶
func (e *Server) AddRoutesUse(routes []Route, next gin.HandlerFunc)
AddRoutesUse 添加路由
Click to show internal directories.
Click to hide internal directories.