stat

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnMesurable

type ColumnMesurable struct {
	ColName string `json:"name"`

	Percentiles []float64          `json:"-"`
	Quantiles   map[string]float64 `json:"quantiles"`
	// contains filtered or unexported fields
}

func NewColumnMesurable

func NewColumnMesurable(ColName string) *ColumnMesurable

type IPGeo added in v0.3.0

type IPGeo struct {
	CountryName string
	CountryISO  string
}

type ProxyChickStatTable

type ProxyChickStatTable interface {
	// contains filtered or unexported methods
}

func ProcIPTestResults added in v0.3.0

func ProcIPTestResults(results []*client.Result, outputs []io.Writer, db geoip2.Reader) ([]ProxyChickStatTable, int)

func ProcTestResults

func ProcTestResults(results []*client.Result, outputs []io.Writer, trasnport string) []ProxyChickStatTable

type TableCountable

type TableCountable struct {
	Name      string               `json:"name"`
	TableType string               `json:"TableType"`
	Headers   table.Row            `json:"headers"`
	Rows      []*TableCountableRow `json:"rows"`

	TableWriter  table.Writer       `json:"-"`
	DistinctCntr map[string]int     `json:"-"`
	TotalCnt     int                `json:"-"`
	DistinctPerc map[string]float64 `json:"-"`
	// contains filtered or unexported fields
}

func NewTableCountable

func NewTableCountable(tblName string, outputs []io.Writer) *TableCountable

type TableCountableRow

type TableCountableRow struct {
	Value      string  `json:"value"`
	Count      int     `json:"count"`
	Percentage float64 `json:"percent"`
}

type TableMesurable

type TableMesurable struct {
	Name      string             `json:"name"`
	TableType string             `json:"TableType"`
	Headers   table.Row          `json:"headers"`
	Rows      []*ColumnMesurable `json:"rows"`

	Percentiles []float64 `json:"-"`

	Metrics []*ColumnMesurable `json:"-"`
	// contains filtered or unexported fields
}

Container for mesurable results. Help to calc quantiles and organise results into table.

func NewTableMesurable

func NewTableMesurable(tblName string, outputs []io.Writer, metrics []*ColumnMesurable) *TableMesurable

Jump to

Keyboard shortcuts

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