Documentation
¶
Index ¶
- Constants
- type CliSlogHandler
- type ComparisonFunc
- type Param
- type ParamProfiler
- type ScenarioOption
- type ScenarioProfiler
- type ScenarioStruct
- type SortOrder
- type Sortable
- func (s *Sortable[T]) AddMapper(key string, mapper ComparisonFunc[T])
- func (s *Sortable[T]) Len() int
- func (s *Sortable[T]) Less(i, j int) bool
- func (s *Sortable[T]) MustSetSortOption(sortKeys []string, sortOrders []SortOrder)
- func (s *Sortable[T]) SetSortOption(sortKeys []string, sortOrders []SortOrder) error
- func (s *Sortable[T]) Swap(i, j int)
- func (s *Sortable[T]) Values() []T
- type Transition
- type TransitionOption
- type TransitionProfiler
- type Trend
- type TrendData
- type TrendOption
- type TrendProfiler
Constants ¶
View Source
const TraceErrorKey = "trace_error"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliSlogHandler ¶ added in v1.20.0
type CliSlogHandler struct {
// contains filtered or unexported fields
}
func NewCliSlogHandler ¶ added in v1.20.0
func NewCliSlogHandler(w io.Writer, opts *slog.HandlerOptions) *CliSlogHandler
type ComparisonFunc ¶ added in v1.12.0
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 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 Sortable ¶ added in v1.12.0
type Sortable[T any] struct { // contains filtered or unexported fields }
func NewSortable ¶ added in v1.12.0
func (*Sortable[T]) AddMapper ¶ added in v1.12.0
func (s *Sortable[T]) AddMapper(key string, mapper ComparisonFunc[T])
func (*Sortable[T]) MustSetSortOption ¶ added in v1.12.0
func (*Sortable[T]) SetSortOption ¶ added in v1.12.0
type Transition ¶ added in v1.3.1
func NewTransition ¶ added in v1.3.1
type TransitionOption ¶ added in v1.3.1
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 TrendOption ¶ added in v1.3.1
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)
Click to show internal directories.
Click to hide internal directories.