Documentation
¶
Index ¶
- Variables
- func CacheWithEtags()
- func DELETE(path string, fn http.Handler) *route.Route
- func DELETEFunc(path string, fn http.HandlerFunc) *route.Route
- func GET(path string, fn http.Handler) *route.Route
- func GETFunc(path string, fn http.HandlerFunc) *route.Route
- func Mount(mountpoint string, rtr *router.Router)
- func PATCH(path string, fn http.Handler) *route.Route
- func PATCHFunc(path string, fn http.HandlerFunc) *route.Route
- func POST(path string, fn http.Handler) *route.Route
- func POSTFunc(path string, fn http.HandlerFunc) *route.Route
- func PUT(path string, fn http.Handler) *route.Route
- func PUTFunc(path string, fn http.HandlerFunc) *route.Route
- func RouteParam(req *http.Request, name string) string
- func Serve() error
- func ServeAddress(address string) error
- func Static(path, directory string) *router.FileServer
- func Use(middleware ...wrap.Wrapper)
Constants ¶
This section is empty.
Variables ¶
View Source
var Catcher func(recovered interface{}, rw http.ResponseWriter, req *http.Request) = defaultCatcher
View Source
var DEVELOPMENT = true
View Source
var Fallback func(rw http.ResponseWriter, req *http.Request) = defaultFallback
View Source
var (
Router = router.New()
)
Functions ¶
func CacheWithEtags ¶
func CacheWithEtags()
func DELETEFunc ¶
func DELETEFunc(path string, fn http.HandlerFunc) *route.Route
func Mount ¶
func Mount(mountpoint string, rtr *router.Router)
Mount mounts the given router under the given path
func ServeAddress ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.