route

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChi added in v1.0.5

func NewChi(config ...chi.Config) route.Engine

func NewChiGroup added in v1.0.5

func NewChiGroup(instance chi.Router, prefix string, originMiddlewares []httpcontract.HandlerFunc, globalMiddlewares []httpcontract.HandlerFunc) route.Route

func NewFiber added in v1.0.1

func NewFiber(config ...fiber.Config) route.Engine

func NewFiberGroup added in v1.0.1

func NewFiberGroup(instance fiber.Router, prefix string, originMiddlewares []httpcontract.HandlerFunc, globalMiddlewares []httpcontract.HandlerFunc) route.Route

func NewGin

func NewGin() route.Engine

func NewGinGroup

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

Types

type Application

type Application struct {
	Engine route.Engine
}

func (*Application) Init

func (app *Application) Init() route.Engine

type Chi added in v1.0.5

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

func (*Chi) Run added in v1.0.5

func (r *Chi) Run(addr string) error

func (*Chi) ServeHTTP added in v1.0.5

func (r *Chi) ServeHTTP(w http.ResponseWriter, req *http.Request)

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

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

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) Prefix added in v1.0.5

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

func (*ChiGroup) Put added in v1.0.5

func (r *ChiGroup) Put(relativePath string, handlers ...httpcontract.HandlerFunc)

func (*ChiGroup) Static added in v1.0.5

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

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

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

type Fiber added in v1.0.1

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

func (*Fiber) Run added in v1.0.1

func (r *Fiber) Run(addr string) error

func (*Fiber) ServeHTTP added in v1.0.1

func (r *Fiber) ServeHTTP(w http.ResponseWriter, req *http.Request)

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) Prefix added in v1.0.1

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

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 Gin

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

func (*Gin) Run

func (r *Gin) Run(addr string) error

func (*Gin) ServeHTTP

func (r *Gin) ServeHTTP(w http.ResponseWriter, req *http.Request)

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) Group

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

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) Prefix

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

func (*GinGroup) Put

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

func (*GinGroup) Static

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

func (*GinGroup) StaticFS

func (r *GinGroup) StaticFS(relativePath string, fs http.FileSystem)

func (*GinGroup) StaticFile

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

type ServiceProvider

type ServiceProvider struct {
	Engine route.Engine
}

func (*ServiceProvider) Boot

func (route *ServiceProvider) Boot()

func (*ServiceProvider) Register

func (route *ServiceProvider) Register()

Jump to

Keyboard shortcuts

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