Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderMatcher ¶
type HeaderMatcher struct {
// contains filtered or unexported fields
}
HeaderMatcher handles header-based matching
func NewHeaderMatcher ¶
func NewHeaderMatcher() *HeaderMatcher
func (*HeaderMatcher) Clear ¶
func (hm *HeaderMatcher) Clear()
type MethodMatcher ¶
type MethodMatcher struct {
// contains filtered or unexported fields
}
func NewMethodMatcher ¶
func NewMethodMatcher() *MethodMatcher
func (*MethodMatcher) Add ¶
func (mm *MethodMatcher) Add(method string, route *Route)
func (*MethodMatcher) Clear ¶
func (mm *MethodMatcher) Clear()
func (*MethodMatcher) Match ¶
func (mm *MethodMatcher) Match(method string) []*Route
type PathMatcher ¶
type PathMatcher struct {
// contains filtered or unexported fields
}
TODO: Use RadixTree for prefix matching for better performance
func NewPathMatcher ¶
func NewPathMatcher(logger *logger.Logger) *PathMatcher
func (*PathMatcher) Add ¶
func (pm *PathMatcher) Add(pattern string, route *Route)
func (*PathMatcher) Clear ¶
func (pm *PathMatcher) Clear()
func (*PathMatcher) Match ¶
func (pm *PathMatcher) Match(path string) []*Route
Click to show internal directories.
Click to hide internal directories.