urlclusteranalyzer

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package urlclusteranalyzer provides url cluster analyzer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLClusterAnalyzer

type URLClusterAnalyzer struct {
	// contains filtered or unexported fields
}

URLClusterAnalyzer is url cluster analyzer.

func New

func New() *URLClusterAnalyzer

New creates a URLClusterAnalyzer.

func (*URLClusterAnalyzer) GetPattern

func (u *URLClusterAnalyzer) GetPattern(urlPath string) string

GetPattern extracts the pattern of a Restful url path. A field of the path occurs more than 20 distinct values will be considered as a variables. e.g. input: /com/megaease/users/123/friends/456 output: /com/megaease/users/*/friends/*

Jump to

Keyboard shortcuts

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