Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandleFunc ¶
type HandleFunc func(http.ResponseWriter, *http.Request)
type RouterWrapper ¶
type RouterWrapper struct { Router *mux.Router SubPath string Methods []string Handler HandleFunc Children []*RouterWrapper Parent *RouterWrapper }
func New ¶
func New(path string, methods []string, handler HandleFunc) *RouterWrapper
func (*RouterWrapper) Add ¶
func (w *RouterWrapper) Add(child *RouterWrapper) error
func (*RouterWrapper) FullPath ¶
func (w *RouterWrapper) FullPath() string
Click to show internal directories.
Click to hide internal directories.