dynamicpathdetector

package
v0.0.117 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 KeyInMap

func KeyInMap[T any](TestMap map[string]T, key string) bool

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL