Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeSet ¶
type ChangeSet struct {
// contains filtered or unexported fields
}
func (*ChangeSet) RemoveRoute ¶
type Matcher ¶
type Matcher interface {
LookupRoute(method, pathWithParams string) *PathMatched
}
Matcher defines the interface to lookup a a path
type PathMatched ¶
PathMatcher holds the information of a matched path in different formats
func NewPathMatched ¶
func NewPathMatched(method, openApiPath string) *PathMatched
type PathMatcher ¶
type PathMatcher struct {
// contains filtered or unexported fields
}
func NewPathMatcher ¶
func NewPathMatcher() *PathMatcher
func (*PathMatcher) AddRoute ¶
func (pm *PathMatcher) AddRoute(method, path string)
func (*PathMatcher) Build ¶
func (pm *PathMatcher) Build()
func (*PathMatcher) LookupRoute ¶
func (pm *PathMatcher) LookupRoute(method, pathWithParams string) *PathMatched
type SharedPathMatcher ¶
type SharedPathMatcher struct {
// contains filtered or unexported fields
}
func NewSharedPathMatcher ¶
func NewSharedPathMatcher(matcher *PathMatcher) *SharedPathMatcher
func (*SharedPathMatcher) LookupRoute ¶
func (spm *SharedPathMatcher) LookupRoute(method, pathWithParams string) *PathMatched
func (*SharedPathMatcher) StartChangeSet ¶
func (spm *SharedPathMatcher) StartChangeSet() *ChangeSet
Click to show internal directories.
Click to hide internal directories.