router

package
v0.0.0-...-ccdc81b Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathPrefix   = "/"
	PicturesPath = PathPrefix + "pictures"
)
View Source
const ComponentRouterHandlers = "Component Router Handlers"

Variables

This section is empty.

Functions

func HandlePictures

func HandlePictures(w http.ResponseWriter, r *http.Request)

func NewRoute

func NewRoute(path string, handler models.HandlerFunc, opts ...RouteWrapper) models.Route

func NewRouter

func NewRouter() (lr *localRouter)

Types

type RouteWrapper

type RouteWrapper func(r models.Route) models.Route

Jump to

Keyboard shortcuts

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