Documentation ¶
Index ¶
- func AnalyzeEndpoints(endpoints *[]types.HTTPEndpoint, analyzer *PathAnalyzer) ([]types.HTTPEndpoint, error)
- func AnalyzeURL(urlString string, analyzer *PathAnalyzer) (string, error)
- func KeyInMap[T any](TestMap map[string]T, key string) bool
- func MergeDuplicateEndpoints(endpoints []*types.HTTPEndpoint) ([]*types.HTTPEndpoint, error)
- func ProcessEndpoint(endpoint *types.HTTPEndpoint, analyzer *PathAnalyzer, ...) (*types.HTTPEndpoint, error)
- type PathAnalyzer
- type SegmentNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyzeEndpoints ¶
func AnalyzeEndpoints(endpoints *[]types.HTTPEndpoint, analyzer *PathAnalyzer) ([]types.HTTPEndpoint, error)
func AnalyzeURL ¶
func AnalyzeURL(urlString string, analyzer *PathAnalyzer) (string, error)
func MergeDuplicateEndpoints ¶
func MergeDuplicateEndpoints(endpoints []*types.HTTPEndpoint) ([]*types.HTTPEndpoint, error)
func ProcessEndpoint ¶
func ProcessEndpoint(endpoint *types.HTTPEndpoint, analyzer *PathAnalyzer, newEndpoints []*types.HTTPEndpoint) (*types.HTTPEndpoint, error)
Types ¶
type PathAnalyzer ¶
type PathAnalyzer struct { RootNodes map[string]*SegmentNode // contains filtered or unexported fields }
func NewPathAnalyzer ¶
func NewPathAnalyzer(threshold int) *PathAnalyzer
func (*PathAnalyzer) AnalyzePath ¶
func (ua *PathAnalyzer) AnalyzePath(path, identifier string) (string, error)
type SegmentNode ¶
type SegmentNode struct { SegmentName string Count int Children map[string]*SegmentNode }
func (*SegmentNode) IsNextDynamic ¶
func (sn *SegmentNode) IsNextDynamic() bool
Click to show internal directories.
Click to hide internal directories.