Documentation ¶
Index ¶
- func NewGin() route.Engine
- func NewGinGroup(instance gin.IRouter, prefix string, ...) route.Route
- type Application
- type Gin
- type GinGroup
- func (r *GinGroup) Any(relativePath string, handler httpcontract.HandlerFunc)
- func (r *GinGroup) Delete(relativePath string, handler httpcontract.HandlerFunc)
- func (r *GinGroup) Get(relativePath string, handler httpcontract.HandlerFunc)
- func (r *GinGroup) Group(handler route.GroupFunc)
- func (r *GinGroup) Middleware(handlers ...httpcontract.Middleware) route.Route
- func (r *GinGroup) Options(relativePath string, handler httpcontract.HandlerFunc)
- func (r *GinGroup) Patch(relativePath string, handler httpcontract.HandlerFunc)
- func (r *GinGroup) Post(relativePath string, handler httpcontract.HandlerFunc)
- func (r *GinGroup) Prefix(addr string) route.Route
- func (r *GinGroup) Put(relativePath string, handler httpcontract.HandlerFunc)
- func (r *GinGroup) Static(relativePath, root string)
- func (r *GinGroup) StaticFS(relativePath string, fs http.FileSystem)
- func (r *GinGroup) StaticFile(relativePath, filepath string)
- type ServiceProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGinGroup ¶ added in v1.0.0
func NewGinGroup(instance gin.IRouter, prefix string, originMiddlewares []httpcontract.Middleware) route.Route
Types ¶
type Application ¶
type Application struct { }
func (*Application) Init ¶
func (app *Application) Init() route.Engine
type Gin ¶ added in v1.0.0
func (*Gin) GlobalMiddleware ¶ added in v1.3.0
func (r *Gin) GlobalMiddleware(handlers ...httpcontract.Middleware)
type GinGroup ¶ added in v1.0.0
type GinGroup struct {
// contains filtered or unexported fields
}
func (*GinGroup) Any ¶ added in v1.0.0
func (r *GinGroup) Any(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Delete ¶ added in v1.0.0
func (r *GinGroup) Delete(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Get ¶ added in v1.0.0
func (r *GinGroup) Get(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Middleware ¶ added in v1.0.0
func (r *GinGroup) Middleware(handlers ...httpcontract.Middleware) route.Route
func (*GinGroup) Options ¶ added in v1.0.0
func (r *GinGroup) Options(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Patch ¶ added in v1.0.0
func (r *GinGroup) Patch(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Post ¶ added in v1.0.0
func (r *GinGroup) Post(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Put ¶ added in v1.0.0
func (r *GinGroup) Put(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) StaticFS ¶ added in v1.0.0
func (r *GinGroup) StaticFS(relativePath string, fs http.FileSystem)
func (*GinGroup) StaticFile ¶ added in v1.0.0
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (route *ServiceProvider) Boot()
func (*ServiceProvider) Register ¶
func (route *ServiceProvider) Register()
Click to show internal directories.
Click to hide internal directories.