Documentation ¶
Index ¶
- func SetDefaultServer(s *Server)
- type ApiRouter
- type Router
- type RouterGroup
- func (group *RouterGroup) DELETE(relativePath string, handlerFunc ...gin.HandlerFunc)
- func (group *RouterGroup) GET(relativePath string, handlerFunc ...gin.HandlerFunc)
- func (group *RouterGroup) Group(relativePath string, middlewares ...gin.HandlerFunc) *RouterGroup
- func (group *RouterGroup) HEAD(relativePath string, handlerFunc ...gin.HandlerFunc)
- func (group *RouterGroup) OPTIONS(relativePath string, handlerFunc ...gin.HandlerFunc)
- func (group *RouterGroup) PATCH(relativePath string, handlerFunc ...gin.HandlerFunc)
- func (group *RouterGroup) POST(relativePath string, handlerFunc ...gin.HandlerFunc)
- func (group *RouterGroup) PUT(relativePath string, handlerFunc ...gin.HandlerFunc)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultServer ¶
func SetDefaultServer(s *Server)
Types ¶
type ApiRouter ¶
type ApiRouter struct { RouterGroup // contains filtered or unexported fields }
func NewApiRouter ¶
func NewApiRouter() *ApiRouter
func (*ApiRouter) AddMiddleware ¶
func (r *ApiRouter) AddMiddleware(m gin.HandlerFunc)
func (*ApiRouter) RegisterHandler ¶
type RouterGroup ¶
type RouterGroup struct { Handlers gin.HandlersChain // contains filtered or unexported fields }
func (*RouterGroup) DELETE ¶
func (group *RouterGroup) DELETE(relativePath string, handlerFunc ...gin.HandlerFunc)
func (*RouterGroup) GET ¶
func (group *RouterGroup) GET(relativePath string, handlerFunc ...gin.HandlerFunc)
func (*RouterGroup) Group ¶
func (group *RouterGroup) Group(relativePath string, middlewares ...gin.HandlerFunc) *RouterGroup
func (*RouterGroup) HEAD ¶
func (group *RouterGroup) HEAD(relativePath string, handlerFunc ...gin.HandlerFunc)
func (*RouterGroup) OPTIONS ¶
func (group *RouterGroup) OPTIONS(relativePath string, handlerFunc ...gin.HandlerFunc)
func (*RouterGroup) PATCH ¶
func (group *RouterGroup) PATCH(relativePath string, handlerFunc ...gin.HandlerFunc)
func (*RouterGroup) POST ¶
func (group *RouterGroup) POST(relativePath string, handlerFunc ...gin.HandlerFunc)
func (*RouterGroup) PUT ¶
func (group *RouterGroup) PUT(relativePath string, handlerFunc ...gin.HandlerFunc)
type Server ¶
var (
DefaultServer *Server
)
func (*Server) AddMiddleware ¶
func (s *Server) AddMiddleware(m gin.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.