Documentation ¶
Index ¶
- Constants
- func NewGinGroup(instance gin.IRouter, prefix string, ...) route.Route
- type Gin
- func (r *Gin) Fallback(handler httpcontract.HandlerFunc)
- func (r *Gin) GlobalMiddleware(middlewares ...httpcontract.Middleware)
- func (r *Gin) Run(host ...string) error
- func (r *Gin) RunTLS(host ...string) error
- func (r *Gin) RunTLSWithCert(host, certFile, keyFile string) error
- func (r *Gin) ServeHTTP(writer http.ResponseWriter, request *http.Request)
- 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(middlewares ...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) Resource(relativePath string, controller httpcontract.ResourceController)
- 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 ¶
View Source
const Binding = "goravel.route"
Variables ¶
This section is empty.
Functions ¶
func NewGinGroup ¶
func NewGinGroup(instance gin.IRouter, prefix string, originMiddlewares []httpcontract.Middleware, lastMiddlewares []httpcontract.Middleware) route.Route
Types ¶
type Gin ¶
func (*Gin) Fallback ¶
func (r *Gin) Fallback(handler httpcontract.HandlerFunc)
func (*Gin) GlobalMiddleware ¶
func (r *Gin) GlobalMiddleware(middlewares ...httpcontract.Middleware)
func (*Gin) RunTLSWithCert ¶
type GinGroup ¶
type GinGroup struct {
// contains filtered or unexported fields
}
func (*GinGroup) Any ¶
func (r *GinGroup) Any(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Delete ¶
func (r *GinGroup) Delete(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Get ¶
func (r *GinGroup) Get(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Middleware ¶
func (r *GinGroup) Middleware(middlewares ...httpcontract.Middleware) route.Route
func (*GinGroup) Options ¶
func (r *GinGroup) Options(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Patch ¶
func (r *GinGroup) Patch(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Post ¶
func (r *GinGroup) Post(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Put ¶
func (r *GinGroup) Put(relativePath string, handler httpcontract.HandlerFunc)
func (*GinGroup) Resource ¶
func (r *GinGroup) Resource(relativePath string, controller httpcontract.ResourceController)
func (*GinGroup) StaticFile ¶
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (route *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (route *ServiceProvider) Register(app foundation.Application)
Click to show internal directories.
Click to hide internal directories.