internal

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComparisonFunc added in v1.12.0

type ComparisonFunc[T any] func(i, j T) bool

type Param added in v1.13.0

type Param struct {
	Endpoints             []string
	Count                 map[string]int
	Path                  map[string][]map[string]int
	PathName              map[string][]string
	QueryKey              map[string]map[string]int
	QueryKeyCombination   map[string]map[string]int
	QueryValue            map[string]map[string]map[string]int
	QueryValueCombination map[string]map[string]int
}

type ParamProfiler added in v1.13.0

type ParamProfiler struct {
}

func NewParamProfiler added in v1.13.0

func NewParamProfiler() *ParamProfiler

func (*ParamProfiler) Profile added in v1.13.0

func (p *ParamProfiler) Profile(reader *log.LTSVReader) (*Param, error)

type ScenarioOption

type ScenarioOption struct {
	MatchingGroups []string
	TimeFormat     string
}

type ScenarioProfiler

type ScenarioProfiler struct {
}

func NewScenarioProfiler

func NewScenarioProfiler() *ScenarioProfiler

func (*ScenarioProfiler) Profile

func (p *ScenarioProfiler) Profile(reader *log.LTSVReader) ([]ScenarioStruct, error)

type ScenarioStruct added in v1.4.0

type ScenarioStruct struct {
	Hash     string
	Count    int
	FirstReq int
	LastReq  int
	Pattern  *pattern.Node
}

type SortOrder added in v1.12.0

type SortOrder int
const (
	Asc  SortOrder = iota // Ascending
	Desc                  // Descending
)

type Sortable added in v1.12.0

type Sortable[T any] struct {
	// contains filtered or unexported fields
}

func NewSortable added in v1.12.0

func NewSortable[T any](values []T) *Sortable[T]

func (*Sortable[T]) AddMapper added in v1.12.0

func (s *Sortable[T]) AddMapper(key string, mapper ComparisonFunc[T])

func (*Sortable[T]) Len added in v1.12.0

func (s *Sortable[T]) Len() int

func (*Sortable[T]) Less added in v1.12.0

func (s *Sortable[T]) Less(i, j int) bool

func (*Sortable[T]) MustSetSortOption added in v1.12.0

func (s *Sortable[T]) MustSetSortOption(sortKeys []string, sortOrders []SortOrder)

func (*Sortable[T]) SetSortOption added in v1.12.0

func (s *Sortable[T]) SetSortOption(sortKeys []string, sortOrders []SortOrder) error

func (*Sortable[T]) Swap added in v1.12.0

func (s *Sortable[T]) Swap(i, j int)

func (*Sortable[T]) Values added in v1.12.0

func (s *Sortable[T]) Values() []T

type Transition added in v1.3.1

type Transition struct {
	Data      map[string]map[string]int
	Endpoints []string
	Sum       map[string]int
}

func NewTransition added in v1.3.1

func NewTransition(data map[string]map[string]int, endpoints []string, sum map[string]int) *Transition

type TransitionOption added in v1.3.1

type TransitionOption struct {
	MatchingGroups []string
	TimeFormat     string
}

type TransitionProfiler added in v1.3.1

type TransitionProfiler struct {
}

func NewTransitionProfiler added in v1.3.1

func NewTransitionProfiler() *TransitionProfiler

func (*TransitionProfiler) Profile added in v1.3.1

func (p *TransitionProfiler) Profile(reader *log.LTSVReader) (*Transition, error)

type Trend added in v1.3.1

type Trend struct {
	Interval int
	Step     int
	// contains filtered or unexported fields
}

func NewTrend added in v1.3.1

func NewTrend(data map[string]*TrendData, interval, step int) *Trend

func (*Trend) Counts added in v1.3.1

func (t *Trend) Counts(endpoint string) []int

func (*Trend) Endpoints added in v1.3.1

func (t *Trend) Endpoints() []string

type TrendData added in v1.12.0

type TrendData struct {
	Method string
	Uri    string
	// contains filtered or unexported fields
}

func (*TrendData) AddCount added in v1.12.0

func (t *TrendData) AddCount(index int, count int)

type TrendOption added in v1.3.1

type TrendOption struct {
	MatchingGroups []string
	TimeFormat     string
	Interval       int
}

type TrendProfiler added in v1.3.1

type TrendProfiler struct {
}

func NewTrendProfiler added in v1.3.1

func NewTrendProfiler() *TrendProfiler

func (*TrendProfiler) Profile added in v1.3.1

func (p *TrendProfiler) Profile(reader *log.LTSVReader, interval int, sortKeys []string) (*Trend, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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