Documentation ¶
Index ¶
- func GinRecovery(recV interface{}, request *http.Request, args []interface{}) (resp interface{}, err error)
- func NewGinServer() route.Server
- type CommonRespCtr
- type GinRequest
- type GinRouter
- func (g *GinRouter) AddMiddleAfter(handler route.Handler, v interface{})
- func (g *GinRouter) AddMiddleBefore(handler route.Handler, v interface{})
- func (g *GinRouter) Close()
- func (g *GinRouter) Connect(path string, handler route.Handler, req interface{})
- func (g *GinRouter) Delete(path string, handler route.Handler, req interface{})
- func (g *GinRouter) Get(path string, handler route.Handler, req interface{})
- func (g *GinRouter) Handle(method, path string, handler route.Handler, v interface{})
- func (g *GinRouter) Head(path string, handler route.Handler, req interface{})
- func (g *GinRouter) Options(path string, handler route.Handler, req interface{})
- func (g *GinRouter) Patch(path string, handler route.Handler, req interface{})
- func (g *GinRouter) Post(path string, handler route.Handler, req interface{})
- func (g *GinRouter) Put(path string, handler route.Handler, req interface{})
- func (g *GinRouter) SetAutoCors(isOpen bool)
- func (g *GinRouter) SetRecover(res route.Recover)
- func (g *GinRouter) Sub(relativePath string) route.Router
- func (g *GinRouter) Trace(path string, handler route.Handler, req interface{})
- func (g *GinRouter) Wait(timeout int)
- type GinServer
- type ReqMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GinRecovery ¶
func NewGinServer ¶
Types ¶
type CommonRespCtr ¶
type GinRequest ¶
type GinRequest struct {
// contains filtered or unexported fields
}
func NewGinRequest ¶
func NewGinRequest(c *gin.Context) *GinRequest
func (*GinRequest) Params ¶
func (g *GinRequest) Params() map[string][]string
func (*GinRequest) Request ¶
func (g *GinRequest) Request() *http.Request
type GinRouter ¶
type GinRouter struct {
// contains filtered or unexported fields
}
func NewGinRouter ¶
func NewGinRouter() *GinRouter
func (*GinRouter) AddMiddleAfter ¶
AddMiddleAfter add after middle
func (*GinRouter) AddMiddleBefore ¶
func (*GinRouter) SetAutoCors ¶
func (*GinRouter) SetRecover ¶
Click to show internal directories.
Click to hide internal directories.