route

package
v1.12.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 14 Imported by: 5

Documentation

Index

Constants

View Source
const Binding = "goravel.route"

Variables

This section is empty.

Functions

func NewGinGroup added in v1.0.0

func NewGinGroup(instance gin.IRouter, prefix string, originMiddlewares []httpcontract.Middleware, lastMiddlewares []httpcontract.Middleware) route.Route

Types

type Gin added in v1.0.0

type Gin struct {
	route.Route
	// contains filtered or unexported fields
}

func NewGin added in v1.0.0

func NewGin(config config.Config) *Gin

func (*Gin) Fallback added in v1.11.0

func (r *Gin) Fallback(handler httpcontract.HandlerFunc)

func (*Gin) GlobalMiddleware added in v1.3.0

func (r *Gin) GlobalMiddleware(middlewares ...httpcontract.Middleware)

func (*Gin) Run added in v1.0.0

func (r *Gin) Run(host ...string) error

func (*Gin) RunTLS added in v1.8.3

func (r *Gin) RunTLS(host ...string) error

func (*Gin) RunTLSWithCert added in v1.10.0

func (r *Gin) RunTLSWithCert(host, certFile, keyFile string) error

func (*Gin) ServeHTTP added in v1.0.0

func (r *Gin) ServeHTTP(writer http.ResponseWriter, request *http.Request)

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) Group added in v1.0.0

func (r *GinGroup) Group(handler route.GroupFunc)

func (*GinGroup) Middleware added in v1.0.0

func (r *GinGroup) Middleware(middlewares ...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) Prefix added in v1.0.0

func (r *GinGroup) Prefix(addr string) route.Route

func (*GinGroup) Put added in v1.0.0

func (r *GinGroup) Put(relativePath string, handler httpcontract.HandlerFunc)

func (*GinGroup) Resource added in v1.11.1

func (r *GinGroup) Resource(relativePath string, controller httpcontract.ResourceController)

func (*GinGroup) Static added in v1.0.0

func (r *GinGroup) Static(relativePath, root string)

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

func (r *GinGroup) StaticFile(relativePath, filepath string)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL