Documentation
¶
Index ¶
- func Mount(mountPoint string, ma Mountable) error
- func MountWrapped(mountPoint string, ma Mountable, wr stack.Wrapper) error
- func MustMount(mountPoint string, ma Mountable)
- func MustMountWrapped(mountPoint string, ma Mountable, wr stack.Wrapper)
- type Mountable
- type Mux
- func (p *Mux) Handle(path string, rh http.Handler)
- func (p *Mux) HandleFunc(path string, fn func(http.ResponseWriter, *http.Request))
- func (n *Mux) Handler(req *http.Request) http.Handler
- func (m *Mux) Mount(mountPoint string, ma Mountable) error
- func (m *Mux) MountWrapped(mountPoint string, ma Mountable, wr stack.Wrapper) error
- func (m *Mux) MustMount(mountPoint string, ma Mountable)
- func (m *Mux) MustMountWrapped(mountPoint string, ma Mountable, wr stack.Wrapper)
- func (n *Mux) ServeHTTP(wr http.ResponseWriter, req *http.Request)
- type Muxer
- type WrappedMux
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountWrapped ¶
MountWrapps mounts on the http.DefaultServeMux
func MustMountWrapped ¶
Types ¶
type Mux ¶
type Mux struct { Debug bool // contains filtered or unexported fields }
func (*Mux) HandleFunc ¶
func (*Mux) MountWrapped ¶
func (*Mux) MustMountWrapped ¶
type WrappedMux ¶
WrappedMux is a Muxer that wraps each handler that is registered by a wrapper
func NewWrappedMux ¶
func NewWrappedMux(wr stack.Wrapper) *WrappedMux
func (*WrappedMux) Debug ¶
func (wm *WrappedMux) Debug()
func (*WrappedMux) Handle ¶
func (wm *WrappedMux) Handle(path string, h http.Handler)
Handle calls the Handle method of the muxer and passes the wrapped handler
func (*WrappedMux) HandleFunc ¶
func (wm *WrappedMux) HandleFunc(path string, fn func(http.ResponseWriter, *http.Request))
func (*WrappedMux) ServeHTTP ¶
func (wm *WrappedMux) ServeHTTP(wr http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.