Documentation ¶
Index ¶
- func NewChi(config ...chi.Config) route.Engine
- func NewChiGroup(instance chi.Router, prefix string, ...) route.Route
- func NewFiber(config ...fiber.Config) route.Engine
- func NewFiberGroup(instance fiber.Router, prefix string, ...) route.Route
- func NewGin() route.Engine
- func NewGinGroup(instance gin.IRouter, prefix string, ...) route.Route
- type Application
- type Chi
- type ChiGroup
- func (r *ChiGroup) Any(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *ChiGroup) Delete(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *ChiGroup) Get(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *ChiGroup) GlobalMiddleware(handlers ...httpcontract.HandlerFunc) route.Route
- func (r *ChiGroup) Group(handler route.GroupFunc)
- func (r *ChiGroup) Middleware(handlers ...httpcontract.HandlerFunc) route.Route
- func (r *ChiGroup) Options(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *ChiGroup) Patch(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *ChiGroup) Post(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *ChiGroup) Prefix(addr string) route.Route
- func (r *ChiGroup) Put(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *ChiGroup) Static(relativePath, root string)
- func (r *ChiGroup) StaticFS(relativePath string, fs http.FileSystem)
- func (r *ChiGroup) StaticFile(relativePath, filepath string)
- type Fiber
- type FiberGroup
- func (r *FiberGroup) Any(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *FiberGroup) Delete(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *FiberGroup) Get(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *FiberGroup) GlobalMiddleware(handlers ...httpcontract.HandlerFunc) route.Route
- func (r *FiberGroup) Group(handler route.GroupFunc)
- func (r *FiberGroup) Middleware(handlers ...httpcontract.HandlerFunc) route.Route
- func (r *FiberGroup) Options(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *FiberGroup) Patch(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *FiberGroup) Post(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *FiberGroup) Prefix(addr string) route.Route
- func (r *FiberGroup) Put(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *FiberGroup) Static(relativePath, root string)
- func (r *FiberGroup) StaticFS(relativePath string, fs http.FileSystem)
- func (r *FiberGroup) StaticFile(relativePath, filepath string)
- type Gin
- type GinGroup
- func (r *GinGroup) Any(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *GinGroup) Delete(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *GinGroup) Get(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *GinGroup) GlobalMiddleware(handlers ...httpcontract.HandlerFunc) route.Route
- func (r *GinGroup) Group(handler route.GroupFunc)
- func (r *GinGroup) Middleware(handlers ...httpcontract.HandlerFunc) route.Route
- func (r *GinGroup) Options(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *GinGroup) Patch(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *GinGroup) Post(relativePath string, handlers ...httpcontract.HandlerFunc)
- func (r *GinGroup) Prefix(addr string) route.Route
- func (r *GinGroup) Put(relativePath string, handlers ...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 NewChiGroup ¶ added in v1.0.5
func NewChiGroup(instance chi.Router, prefix string, originMiddlewares []httpcontract.HandlerFunc, globalMiddlewares []httpcontract.HandlerFunc) route.Route
func NewFiberGroup ¶ added in v1.0.1
func NewFiberGroup(instance fiber.Router, prefix string, originMiddlewares []httpcontract.HandlerFunc, globalMiddlewares []httpcontract.HandlerFunc) route.Route
func NewGinGroup ¶
func NewGinGroup(instance gin.IRouter, prefix string, originMiddlewares []httpcontract.HandlerFunc, globalMiddlewares []httpcontract.HandlerFunc) route.Route
Types ¶
type Application ¶
func (*Application) Init ¶
func (app *Application) Init() route.Engine
type ChiGroup ¶ added in v1.0.5
type ChiGroup struct {
// contains filtered or unexported fields
}
func (*ChiGroup) Any ¶ added in v1.0.5
func (r *ChiGroup) Any(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*ChiGroup) Delete ¶ added in v1.0.5
func (r *ChiGroup) Delete(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*ChiGroup) Get ¶ added in v1.0.5
func (r *ChiGroup) Get(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*ChiGroup) GlobalMiddleware ¶ added in v1.0.5
func (r *ChiGroup) GlobalMiddleware(handlers ...httpcontract.HandlerFunc) route.Route
func (*ChiGroup) Middleware ¶ added in v1.0.5
func (r *ChiGroup) Middleware(handlers ...httpcontract.HandlerFunc) route.Route
func (*ChiGroup) Options ¶ added in v1.0.5
func (r *ChiGroup) Options(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*ChiGroup) Patch ¶ added in v1.0.5
func (r *ChiGroup) Patch(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*ChiGroup) Post ¶ added in v1.0.5
func (r *ChiGroup) Post(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*ChiGroup) Put ¶ added in v1.0.5
func (r *ChiGroup) Put(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*ChiGroup) StaticFS ¶ added in v1.0.5
func (r *ChiGroup) StaticFS(relativePath string, fs http.FileSystem)
func (*ChiGroup) StaticFile ¶ added in v1.0.5
type FiberGroup ¶ added in v1.0.1
type FiberGroup struct {
// contains filtered or unexported fields
}
func (*FiberGroup) Any ¶ added in v1.0.1
func (r *FiberGroup) Any(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*FiberGroup) Delete ¶ added in v1.0.1
func (r *FiberGroup) Delete(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*FiberGroup) Get ¶ added in v1.0.1
func (r *FiberGroup) Get(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*FiberGroup) GlobalMiddleware ¶ added in v1.0.1
func (r *FiberGroup) GlobalMiddleware(handlers ...httpcontract.HandlerFunc) route.Route
func (*FiberGroup) Group ¶ added in v1.0.1
func (r *FiberGroup) Group(handler route.GroupFunc)
func (*FiberGroup) Middleware ¶ added in v1.0.1
func (r *FiberGroup) Middleware(handlers ...httpcontract.HandlerFunc) route.Route
func (*FiberGroup) Options ¶ added in v1.0.1
func (r *FiberGroup) Options(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*FiberGroup) Patch ¶ added in v1.0.1
func (r *FiberGroup) Patch(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*FiberGroup) Post ¶ added in v1.0.1
func (r *FiberGroup) Post(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*FiberGroup) Put ¶ added in v1.0.1
func (r *FiberGroup) Put(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*FiberGroup) Static ¶ added in v1.0.1
func (r *FiberGroup) Static(relativePath, root string)
func (*FiberGroup) StaticFS ¶ added in v1.0.1
func (r *FiberGroup) StaticFS(relativePath string, fs http.FileSystem)
func (*FiberGroup) StaticFile ¶ added in v1.0.1
func (r *FiberGroup) StaticFile(relativePath, filepath string)
type GinGroup ¶
type GinGroup struct {
// contains filtered or unexported fields
}
func (*GinGroup) Any ¶
func (r *GinGroup) Any(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*GinGroup) Delete ¶
func (r *GinGroup) Delete(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*GinGroup) Get ¶
func (r *GinGroup) Get(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*GinGroup) GlobalMiddleware ¶
func (r *GinGroup) GlobalMiddleware(handlers ...httpcontract.HandlerFunc) route.Route
func (*GinGroup) Middleware ¶
func (r *GinGroup) Middleware(handlers ...httpcontract.HandlerFunc) route.Route
func (*GinGroup) Options ¶
func (r *GinGroup) Options(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*GinGroup) Patch ¶
func (r *GinGroup) Patch(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*GinGroup) Post ¶
func (r *GinGroup) Post(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*GinGroup) Put ¶
func (r *GinGroup) Put(relativePath string, handlers ...httpcontract.HandlerFunc)
func (*GinGroup) StaticFile ¶
type ServiceProvider ¶
func (*ServiceProvider) Boot ¶
func (route *ServiceProvider) Boot()
func (*ServiceProvider) Register ¶
func (route *ServiceProvider) Register()
Click to show internal directories.
Click to hide internal directories.