Versions in this module Expand all Collapse all v1 v1.0.1 Oct 18, 2023 v1.0.0 Nov 17, 2015 Changes in this version + type All []Matcher + func NewAll(matchers []Matcher) All + func (m All) Match(r *http.Request) bool + type Builder interface + Build func(*url.URL, url.Values) error + type Extractor interface + Extract func(*Result, *http.Request) + type Func func(*http.Request) bool + func (m Func) Match(r *http.Request) bool + type GorillaHost struct + func NewGorillaHost(pattern string) (*GorillaHost, error) + func (m *GorillaHost) Build(u *url.URL, values url.Values) error + func (m *GorillaHost) Extract(result *Result, r *http.Request) + func (m *GorillaHost) Match(r *http.Request) bool + type GorillaPath struct + func NewGorillaPath(pattern string, strictSlash bool) (*GorillaPath, error) + func (m *GorillaPath) Build(u *url.URL, values url.Values) error + func (m *GorillaPath) Extract(result *Result, r *http.Request) + func (m *GorillaPath) Match(r *http.Request) bool + type GorillaPathPrefix struct + func NewGorillaPathPrefix(pattern string) (*GorillaPathPrefix, error) + func (m *GorillaPathPrefix) Build(u *url.URL, values url.Values) error + func (m *GorillaPathPrefix) Extract(result *Result, r *http.Request) + func (m *GorillaPathPrefix) Match(r *http.Request) bool + type Header map[string]string + func NewHeader(m map[string]string) Header + func (m Header) Match(r *http.Request) bool + type Host string + func NewHost(host string) Host + func (m Host) Match(r *http.Request) bool + type Matcher interface + Match func(*http.Request) bool + type Method []string + func NewMethod(m []string) Method + func (m Method) Match(r *http.Request) bool + type None bool + func NewNone() *None + func (m *None) Match(r *http.Request) bool + type One []Matcher + func NewOne(matchers []Matcher) One + func (m One) Match(r *http.Request) bool + type Path string + func NewPath(path string) Path + func (m Path) Match(r *http.Request) bool + type PathPrefix string + func NewPathPrefix(prefix string) PathPrefix + func (m PathPrefix) Match(r *http.Request) bool + type PathRedirect string + func NewPathRedirect(path string) PathRedirect + func (m PathRedirect) Extract(result *Result, r *http.Request) + func (m PathRedirect) Match(r *http.Request) bool + type Query map[string]string + func NewQuery(m map[string]string) Query + func (m Query) Match(r *http.Request) bool + type Regexp struct + func CompileRegexp(pattern string) (*Regexp, error) + func (r *Regexp) Compiled() *regexp.Regexp + func (r *Regexp) Groups() []string + func (r *Regexp) Indices() []int + func (r *Regexp) MatchString(s string) bool + func (r *Regexp) Revert(values url.Values) (string, error) + func (r *Regexp) RevertValid(values url.Values) (string, error) + func (r *Regexp) Template() string + func (r *Regexp) Values(s string) url.Values + type RegexpHost struct + func NewRegexpHost(pattern string) (*RegexpHost, error) + func (m *RegexpHost) Build(u *url.URL, values url.Values) error + func (m *RegexpHost) Extract(result *Result, r *http.Request) + func (m *RegexpHost) Match(r *http.Request) bool + type RegexpPath struct + func NewRegexpPath(pattern string) (*RegexpPath, error) + func (m *RegexpPath) Build(u *url.URL, values url.Values) error + func (m *RegexpPath) Extract(result *Result, r *http.Request) + func (m *RegexpPath) Match(r *http.Request) bool + type Result struct + Handler http.Handler + Values url.Values + type Scheme []string + func NewScheme(m []string) Scheme + func (m Scheme) Match(r *http.Request) bool