Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerFunc ¶
type HandlerFunc func(w http.ResponseWriter, r *http.Request) error
type Route ¶
type Route struct { Method string Path string Handler HandlerFunc }
func NewGetRoute ¶
func NewGetRoute(path string, handler HandlerFunc) Route
func NewPostRoute ¶
func NewPostRoute(path string, handler HandlerFunc) Route
func NewPutRoute ¶
func NewPutRoute(path string, handler HandlerFunc) Route
Click to show internal directories.
Click to hide internal directories.