Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Wrap ¶
func Wrap(server *FrontServer, navItem *nav.Nav, innerFunc FrontHandlerFunc) http.HandlerFunc
Wrap wraps a known function in a HandlerFunc and passes along the server and item details it needs outside of the normal scope of the http request Ths resulting function is then passed to the mux handle func (or via middleware)
Types ¶
type FrontHandlerFunc ¶
type FrontHandlerFunc func(server *FrontServer, navItem *nav.Nav, w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.