Documentation ¶
Index ¶
- type HandlerFunc
- type Instance
- type RouterGroup
- func (rg *RouterGroup) DELETE(relativePath string, f HandlerFunc)
- func (rg *RouterGroup) GET(relativePath string, f HandlerFunc)
- func (rg *RouterGroup) Group(relativePath string) *RouterGroup
- func (rg *RouterGroup) HEAD(relativePath string, f HandlerFunc)
- func (rg *RouterGroup) OPTIONS(relativePath string, f HandlerFunc)
- func (rg *RouterGroup) PATCH(relativePath string, f HandlerFunc)
- func (rg *RouterGroup) POST(relativePath string, f HandlerFunc)
- func (rg *RouterGroup) PUT(relativePath string, f HandlerFunc)
- func (rg *RouterGroup) Use(middleware ...gin.HandlerFunc) *RouterGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerFunc ¶
type HandlerFunc func(i *Instance) gin.HandlerFunc
type Instance ¶ added in v0.17.1
type Instance struct { Store *storage.Store Session *auth.Session Config *config.Config Router *gin.Engine Manager *transfer.Manager // contains filtered or unexported fields }
func NewInstance ¶ added in v0.17.1
func (*Instance) Group ¶ added in v0.17.1
func (i *Instance) Group(relativePath string) *RouterGroup
func (*Instance) SetHTMLRenderer ¶ added in v0.17.1
func (i *Instance) SetHTMLRenderer(r render.HTMLRender)
type RouterGroup ¶
type RouterGroup struct { *gin.RouterGroup Server *Instance }
func (*RouterGroup) DELETE ¶
func (rg *RouterGroup) DELETE(relativePath string, f HandlerFunc)
func (*RouterGroup) GET ¶
func (rg *RouterGroup) GET(relativePath string, f HandlerFunc)
func (*RouterGroup) Group ¶
func (rg *RouterGroup) Group(relativePath string) *RouterGroup
func (*RouterGroup) HEAD ¶
func (rg *RouterGroup) HEAD(relativePath string, f HandlerFunc)
func (*RouterGroup) OPTIONS ¶
func (rg *RouterGroup) OPTIONS(relativePath string, f HandlerFunc)
func (*RouterGroup) PATCH ¶
func (rg *RouterGroup) PATCH(relativePath string, f HandlerFunc)
func (*RouterGroup) POST ¶
func (rg *RouterGroup) POST(relativePath string, f HandlerFunc)
func (*RouterGroup) PUT ¶
func (rg *RouterGroup) PUT(relativePath string, f HandlerFunc)
func (*RouterGroup) Use ¶
func (rg *RouterGroup) Use(middleware ...gin.HandlerFunc) *RouterGroup
Click to show internal directories.
Click to hide internal directories.