Documentation
¶
Index ¶
- Variables
- func Any(path string, handler fasthttp.RequestHandler)
- func Delete(path string, handler fasthttp.RequestHandler)
- func Get(path string, handler fasthttp.RequestHandler)
- func Match(path string, handler fasthttp.RequestHandler, methods []string)
- func Options(path string, handler fasthttp.RequestHandler)
- func Patch(path string, handler fasthttp.RequestHandler)
- func PermanentRedirect(path string, to string)
- func Post(path string, handler fasthttp.RequestHandler)
- func Put(path string, handler fasthttp.RequestHandler)
- func Redirect(path string, to string)
- func Redirectc(path string, to string, code int)
- func Redirectm(path string, to string, method string, code int)
- type Route
Constants ¶
This section is empty.
Variables ¶
View Source
var Router router = router{Routes: map[string][]Route{}}
Functions ¶
func Any ¶ added in v0.2.0
func Any(path string, handler fasthttp.RequestHandler)
use it if your handler works with any method
func Delete ¶ added in v0.2.0
func Delete(path string, handler fasthttp.RequestHandler)
func Get ¶ added in v0.2.0
func Get(path string, handler fasthttp.RequestHandler)
func Match ¶ added in v0.2.0
func Match(path string, handler fasthttp.RequestHandler, methods []string)
function for handler that works with multiple methods
func Options ¶ added in v0.2.0
func Options(path string, handler fasthttp.RequestHandler)
func Patch ¶ added in v0.2.0
func Patch(path string, handler fasthttp.RequestHandler)
func PermanentRedirect ¶ added in v0.2.0
func Post ¶ added in v0.2.0
func Post(path string, handler fasthttp.RequestHandler)
func Put ¶ added in v0.2.0
func Put(path string, handler fasthttp.RequestHandler)
Types ¶
type Route ¶
type Route struct {
Method string
Handler fasthttp.RequestHandler
}
Click to show internal directories.
Click to hide internal directories.