route

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileServer added in v1.0.12

func FileServer(r chi.Router, path string, root http.FileSystem)

FileServer conveniently sets up a http.FileServer handler to serve static files from a http.FileSystem.

func NewChi added in v1.0.5

func NewChi(config ...frameworkhttp.ChiConfig) route.Engine

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

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