Documentation
¶
Index ¶
- func NewChi(config ...frameworkhttp.ChiConfig) route.Engine
- func NewChiGroup(instance chi.Router, 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 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, config frameworkhttp.ChiConfig) 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 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.