Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExactMatcher ¶
type ExactMatcher struct { Pattern string // contains filtered or unexported fields }
ExactMatcher matches exact location
func (ExactMatcher) ServeHandler ¶
func (l ExactMatcher) ServeHandler(h http.Handler) http.Handler
ServeHandler implements middleware interface
type PrefixMatcher ¶
type PrefixMatcher struct { Pattern string // contains filtered or unexported fields }
PrefixMatcher matches location using prefix string
func (PrefixMatcher) ServeHandler ¶
func (l PrefixMatcher) ServeHandler(h http.Handler) http.Handler
ServeHandler implements middleware interface
type RegExpMatcher ¶
type RegExpMatcher struct { Pattern string // contains filtered or unexported fields }
RegExpMatcher matches location using regexp
func (RegExpMatcher) ServeHandler ¶
func (l RegExpMatcher) ServeHandler(h http.Handler) http.Handler
ServeHandler implements middleware interface
Click to show internal directories.
Click to hide internal directories.