Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resource ¶
func Resource(path string, resource ResourceHandler, opts ...func(*ngamux.HttpServeMux))
func Router ¶
func Router() *ngamux.HttpServeMux
func WithResourceMiddleware ¶
func WithResourceMiddleware(middlewares ...ngamux.MiddlewareFunc) func(*ngamux.HttpServeMux)
Types ¶
type ResourceHandler ¶
type ResourceHandler interface {
Index(http.ResponseWriter, *http.Request)
Show(http.ResponseWriter, *http.Request)
Store(http.ResponseWriter, *http.Request)
Update(http.ResponseWriter, *http.Request)
Destroy(http.ResponseWriter, *http.Request)
}
Click to show internal directories.
Click to hide internal directories.