types

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context = context.Context

type ErrorHandlerFunc added in v0.7.0

type ErrorHandlerFunc = web.ErrorHandlerFunc

type GetRoutePathFunc added in v0.7.0

type GetRoutePathFunc func(*http.Request) string

type Handler

type Handler interface {
	web.Handler
	web.RouterPageInfo
}

type Mixer

type Mixer interface {
	Router

	Close() error
	Reload() error

	Sitemap(prefix string) http.HandlerFunc
}

type Router

type Router interface {
	http.Handler
	Handler

	Middleware(prefix string) web.MiddlewareHandlerFunc

	Route(pattern string, fn func(r Router)) Router
	Attach(h interface{}) error

	Mount(path string, h interface{}) error

	Resolve(*Context) (web.Handler, *Context, bool)
}

type SetRoutePathFunc added in v0.7.0

type SetRoutePathFunc func(*http.Request, string)

Jump to

Keyboard shortcuts

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