Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router interface { // Route routes traffic to a registered http handle func. Route(w http.ResponseWriter, r *http.Request) // Register registers a http handle func against a path string. Register(path string, f func(w http.ResponseWriter, r *http.Request)) // IsRegistered checks if a path is registered IsRegistered(path string) bool }
Router routes traffic to a registered http handle func.
Click to show internal directories.
Click to hide internal directories.