Documentation
¶
Index ¶
- Variables
- func NewPathWithConfig(conf *Config) (http.Handler, error)
- type Config
- type Path
- func (p *Path) HandlePath(path string, handler http.Handler)
- func (p *Path) HandlePrefix(prefix string, handler http.Handler) error
- func (p *Path) HandlePrefixAndRegexp(prefix, reg string, handler http.Handler) error
- func (p *Path) Handler(path string) (handler http.Handler)
- func (p *Path) NotFound(handler http.Handler)
- func (p *Path) ServeHTTP(rw http.ResponseWriter, r *http.Request)
- type Route
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotHandler = fmt.Errorf("error not handler") ErrNotRouter = fmt.Errorf("error not router") )
View Source
var (
ErrRouteAlreadyExists = fmt.Errorf("error route already exists")
)
Functions ¶
Types ¶
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
Path is an host multiplexer.
func (*Path) HandlePrefixAndRegexp ¶
func (*Path) Handler ¶
Handler returns most matching handler and prefix bytes data to use for the given reader.
Click to show internal directories.
Click to hide internal directories.