dynamicpathdetector

package
v0.0.127 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DynamicIdentifier string = "\u22ef"

Variables

This section is empty.

Functions

func AnalyzeEndpoints

func AnalyzeEndpoints(endpoints *[]types.HTTPEndpoint, analyzer *PathAnalyzer) ([]types.HTTPEndpoint, error)

func AnalyzeOpen added in v0.0.118

func AnalyzeOpen(path string, analyzer *PathAnalyzer) (string, error)

func AnalyzeOpens added in v0.0.118

func AnalyzeOpens(opens []types.OpenCalls, analyzer *PathAnalyzer) ([]types.OpenCalls, error)

func AnalyzeURL

func AnalyzeURL(urlString string, analyzer *PathAnalyzer) (string, error)

func CompareDynamic added in v0.0.119

func CompareDynamic(dynamicPath, regularPath string) bool

func MergeDuplicateEndpoints

func MergeDuplicateEndpoints(endpoints []*types.HTTPEndpoint) ([]*types.HTTPEndpoint, error)

func MergeStrings added in v0.0.118

func MergeStrings(existing, new []string) []string

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(p, 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