Documentation ¶
Index ¶
- Constants
- func BetweenTime(t, start, end string) bool
- func DiffCountAll(from, to map[string]int) map[string]string
- func StringTimeEqualTime(l string, r time.Time) bool
- func StringTimeGreaterThanOrEqualTime(l string, r time.Time) bool
- func StringTimeGreaterThanTime(l string, r time.Time) bool
- func StringTimeLessThanOrEqualTime(l string, r time.Time) bool
- func StringTimeLessThanTime(l string, r time.Time) bool
- func StringTimeNotEqualTime(l string, r time.Time) bool
- func TimeAgo(s string) time.Time
- func TimeStringEqualTime(l time.Time, r string) bool
- func TimeStringGreaterThanOrEqualTime(l time.Time, r string) bool
- func TimeStringGreaterThanTime(l time.Time, r string) bool
- func TimeStringLessThanOrEqualTime(l time.Time, r string) bool
- func TimeStringLessThanTime(l time.Time, r string) bool
- func TimeStringNotEqualTime(l time.Time, r string) bool
- type Differ
- func (d *Differ) DiffAvgRequestBodyBytes() string
- func (d *Differ) DiffAvgResponseBodyBytes() string
- func (d *Differ) DiffAvgResponseTime() string
- func (d *Differ) DiffCnt() string
- func (d *Differ) DiffMaxRequestBodyBytes() string
- func (d *Differ) DiffMaxResponseBodyBytes() string
- func (d *Differ) DiffMaxResponseTime() string
- func (d *Differ) DiffMinRequestBodyBytes() string
- func (d *Differ) DiffMinResponseBodyBytes() string
- func (d *Differ) DiffMinResponseTime() string
- func (d *Differ) DiffPNRequestBodyBytes(n int) string
- func (d *Differ) DiffPNResponseBodyBytes(n int) string
- func (d *Differ) DiffPNResponseTime(n int) string
- func (d *Differ) DiffStatus1xx() string
- func (d *Differ) DiffStatus2xx() string
- func (d *Differ) DiffStatus3xx() string
- func (d *Differ) DiffStatus4xx() string
- func (d *Differ) DiffStatus5xx() string
- func (d *Differ) DiffStddevRequestBodyBytes() string
- func (d *Differ) DiffStddevResponseBodyBytes() string
- func (d *Differ) DiffStddevResponseTime() string
- func (d *Differ) DiffSumRequestBodyBytes() string
- func (d *Differ) DiffSumResponseBodyBytes() string
- func (d *Differ) DiffSumResponseTime() string
- type ExpEval
- type ExpEvalEnv
- type Filter
- type HTTPStat
- func (hs *HTTPStat) AvgRequestBodyBytes() float64
- func (hs *HTTPStat) AvgResponseBodyBytes() float64
- func (hs *HTTPStat) AvgResponseTime() float64
- func (hs *HTTPStat) Count() int
- func (hs *HTTPStat) MaxRequestBodyBytes() float64
- func (hs *HTTPStat) MaxResponseBodyBytes() float64
- func (hs *HTTPStat) MaxResponseTime() float64
- func (hs *HTTPStat) MinRequestBodyBytes() float64
- func (hs *HTTPStat) MinResponseBodyBytes() float64
- func (hs *HTTPStat) MinResponseTime() float64
- func (hs *HTTPStat) PNRequestBodyBytes(n int) float64
- func (hs *HTTPStat) PNResponseBodyBytes(n int) float64
- func (hs *HTTPStat) PNResponseTime(n int) float64
- func (hs *HTTPStat) Set(status int, restime, reqBodyBytes, resBodyBytes float64)
- func (hs *HTTPStat) StddevRequestBodyBytes() float64
- func (hs *HTTPStat) StddevResponseBodyBytes() float64
- func (hs *HTTPStat) StddevResponseTime() float64
- func (hs *HTTPStat) StrCount() string
- func (hs *HTTPStat) StrStatus1xx() string
- func (hs *HTTPStat) StrStatus2xx() string
- func (hs *HTTPStat) StrStatus3xx() string
- func (hs *HTTPStat) StrStatus4xx() string
- func (hs *HTTPStat) StrStatus5xx() string
- func (hs *HTTPStat) SumRequestBodyBytes() float64
- func (hs *HTTPStat) SumResponseBodyBytes() float64
- func (hs *HTTPStat) SumResponseTime() float64
- func (hs *HTTPStat) UriWithOptions(decode bool) string
- type HTTPStats
- func (hs *HTTPStats) CountAll() map[string]int
- func (hs *HTTPStats) CountUris() int
- func (hs *HTTPStats) DoFilter(pstat *parsers.ParsedHTTPStat) (bool, error)
- func (hs *HTTPStats) DumpStats(w io.Writer) error
- func (hs *HTTPStats) InitFilter(options *options.Options) error
- func (hs *HTTPStats) LoadStats(r io.Reader) error
- func (hs *HTTPStats) Set(uri, method string, status int, restime, resBodyBytes, reqBodyBytes float64)
- func (hs *HTTPStats) SetOptions(options *options.Options)
- func (hs *HTTPStats) SetSortOptions(options *SortOptions)
- func (hs *HTTPStats) SetURIMatchingGroups(groups []string) error
- func (hs *HTTPStats) Sort(sortOptions *SortOptions, reverse bool)
- func (hs *HTTPStats) SortAvgRequestBodyBytes(reverse bool)
- func (hs *HTTPStats) SortAvgResponseBodyBytes(reverse bool)
- func (hs *HTTPStats) SortAvgResponseTime(reverse bool)
- func (hs *HTTPStats) SortCount(reverse bool)
- func (hs *HTTPStats) SortMaxRequestBodyBytes(reverse bool)
- func (hs *HTTPStats) SortMaxResponseBodyBytes(reverse bool)
- func (hs *HTTPStats) SortMaxResponseTime(reverse bool)
- func (hs *HTTPStats) SortMethod(reverse bool)
- func (hs *HTTPStats) SortMinRequestBodyBytes(reverse bool)
- func (hs *HTTPStats) SortMinResponseBodyBytes(reverse bool)
- func (hs *HTTPStats) SortMinResponseTime(reverse bool)
- func (hs *HTTPStats) SortPNRequestBodyBytes(reverse bool)
- func (hs *HTTPStats) SortPNResponseBodyBytes(reverse bool)
- func (hs *HTTPStats) SortPNResponseTime(reverse bool)
- func (hs *HTTPStats) SortStddevRequestBodyBytes(reverse bool)
- func (hs *HTTPStats) SortStddevResponseBodyBytes(reverse bool)
- func (hs *HTTPStats) SortStddevResponseTime(reverse bool)
- func (hs *HTTPStats) SortSumRequestBodyBytes(reverse bool)
- func (hs *HTTPStats) SortSumResponseBodyBytes(reverse bool)
- func (hs *HTTPStats) SortSumResponseTime(reverse bool)
- func (hs *HTTPStats) SortUri(reverse bool)
- func (hs *HTTPStats) SortWithOptions()
- func (hs *HTTPStats) Stats() []*HTTPStat
- type PrintOptions
- type Printer
- func (p *Printer) GenerateFooter(counts map[string]int) []string
- func (p *Printer) GenerateFooterWithDiff(countsFrom, countsTo map[string]int) []string
- func (p *Printer) GenerateLine(s *HTTPStat, quoteUri bool) []string
- func (p *Printer) GenerateLineWithDiff(from, to *HTTPStat, quoteUri bool) []string
- func (p *Printer) Print(hs, hsTo *HTTPStats)
- func (p *Printer) SetFormat(format string)
- func (p *Printer) SetHeaders(headers []string)
- func (p *Printer) SetWriter(w io.Writer)
- func (p *Printer) Validate() error
- type SortOptions
Constants ¶
View Source
const ( SortCount = "Count" SortUri = "Uri" SortMethod = "Method" SortMaxResponseTime = "MaxResponseTime" SortMinResponseTime = "MinResponseTime" SortSumResponseTime = "SumResponseTime" SortAvgResponseTime = "AvgResponseTime" SortPNResponseTime = "PNResponseTime" SortStddevResponseTime = "StddevResponseTime" SortMaxRequestBodyBytes = "MaxRequestBodyBytes" SortMinRequestBodyBytes = "MinRequestBodyBytes" SortSumRequestBodyBytes = "SumRequestBodyBytes" SortAvgRequestBodyBytes = "AvgRequestBodyBytes" SortPNRequestBodyBytes = "PNRequestBodyBytes" SortStddevRequestBodyBytes = "StddevRequestBodyBytes" SortMaxResponseBodyBytes = "MaxResponseBodyBytes" SortMinResponseBodyBytes = "MinResponseBodyBytes" SortSumResponseBodyBytes = "SumResponseBodyBytes" SortAvgResponseBodyBytes = "AvgResponseBodyBytes" SortPNResponseBodyBytes = "PNResponseBodyBytes" SortStddevResponseBodyBytes = "StddevResponseBodyBytes" )
Variables ¶
This section is empty.
Functions ¶
func BetweenTime ¶
func StringTimeGreaterThanOrEqualTime ¶
>=
func StringTimeLessThanOrEqualTime ¶
<=
func TimeStringGreaterThanOrEqualTime ¶
>=
func TimeStringLessThanOrEqualTime ¶
<=
Types ¶
type Differ ¶ added in v1.0.10
func (*Differ) DiffAvgRequestBodyBytes ¶ added in v1.0.10
func (*Differ) DiffAvgResponseBodyBytes ¶ added in v1.0.10
func (*Differ) DiffAvgResponseTime ¶ added in v1.0.10
func (*Differ) DiffMaxRequestBodyBytes ¶ added in v1.0.10
request
func (*Differ) DiffMaxResponseBodyBytes ¶ added in v1.0.10
response
func (*Differ) DiffMaxResponseTime ¶ added in v1.0.10
func (*Differ) DiffMinRequestBodyBytes ¶ added in v1.0.10
func (*Differ) DiffMinResponseBodyBytes ¶ added in v1.0.10
func (*Differ) DiffMinResponseTime ¶ added in v1.0.10
func (*Differ) DiffPNRequestBodyBytes ¶ added in v1.0.10
func (*Differ) DiffPNResponseBodyBytes ¶ added in v1.0.10
func (*Differ) DiffPNResponseTime ¶ added in v1.0.10
func (*Differ) DiffStatus1xx ¶ added in v1.0.10
func (*Differ) DiffStatus2xx ¶ added in v1.0.10
func (*Differ) DiffStatus3xx ¶ added in v1.0.10
func (*Differ) DiffStatus4xx ¶ added in v1.0.10
func (*Differ) DiffStatus5xx ¶ added in v1.0.10
func (*Differ) DiffStddevRequestBodyBytes ¶ added in v1.0.10
func (*Differ) DiffStddevResponseBodyBytes ¶ added in v1.0.10
func (*Differ) DiffStddevResponseTime ¶ added in v1.0.10
func (*Differ) DiffSumRequestBodyBytes ¶ added in v1.0.10
func (*Differ) DiffSumResponseBodyBytes ¶ added in v1.0.10
func (*Differ) DiffSumResponseTime ¶ added in v1.0.10
type ExpEvalEnv ¶
type ExpEvalEnv struct { Uri string Method string Time string ResponseTime float64 BodyBytes float64 Status int TimeStringEqualTime func(l time.Time, r string) bool TimeStringNotEqualTime func(l time.Time, r string) bool TimeStringGreaterThanTime func(l time.Time, r string) bool TimeStringGreaterThanOrEqualTime func(l time.Time, r string) bool TimeStringLessThanTime func(l time.Time, r string) bool TimeStringLessThanOrEqualTime func(l time.Time, r string) bool StringTimeEqualTime func(l string, r time.Time) bool StringTimeNotEqualTime func(l string, r time.Time) bool StringTimeGreaterThanTime func(l string, r time.Time) bool StringTimeGreaterThanOrEqualTime func(l string, r time.Time) bool StringTimeLessThanTime func(l string, r time.Time) bool StringTimeLessThanOrEqualTime func(l string, r time.Time) bool TimeAgo func(s string) time.Time BetweenTime func(t, start, end string) bool }
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
func (*Filter) InitParseTime ¶
type HTTPStat ¶
type HTTPStat struct { Uri string `yaml:"uri"` Cnt int `yaml:"count"` Status1xx int `yaml:"status1xx"` Status2xx int `yaml:"status2xx"` Status3xx int `yaml:"status3xx"` Status4xx int `yaml:"status4xx"` Status5xx int `yaml:"status5xx"` Method string `yaml:"method"` ResponseTime *responseTime `yaml:"response_time"` RequestBodyBytes *bodyBytes `yaml:"request_body_bytes"` ResponseBodyBytes *bodyBytes `yaml:"response_body_bytes"` Time string }
func (*HTTPStat) AvgRequestBodyBytes ¶
func (*HTTPStat) AvgResponseBodyBytes ¶
func (*HTTPStat) AvgResponseTime ¶
func (*HTTPStat) MaxResponseTime ¶
func (*HTTPStat) MinRequestBodyBytes ¶
func (*HTTPStat) MinResponseBodyBytes ¶
func (*HTTPStat) MinResponseTime ¶
func (*HTTPStat) PNRequestBodyBytes ¶ added in v1.0.4
func (*HTTPStat) PNResponseBodyBytes ¶ added in v1.0.4
func (*HTTPStat) PNResponseTime ¶ added in v1.0.4
func (*HTTPStat) StddevRequestBodyBytes ¶
func (*HTTPStat) StddevResponseBodyBytes ¶
func (*HTTPStat) StddevResponseTime ¶
func (*HTTPStat) StrStatus1xx ¶
func (*HTTPStat) StrStatus2xx ¶
func (*HTTPStat) StrStatus3xx ¶
func (*HTTPStat) StrStatus4xx ¶
func (*HTTPStat) StrStatus5xx ¶
func (*HTTPStat) SumRequestBodyBytes ¶
func (*HTTPStat) SumResponseBodyBytes ¶
func (*HTTPStat) SumResponseTime ¶
func (*HTTPStat) UriWithOptions ¶ added in v1.0.5
type HTTPStats ¶
type HTTPStats struct {
// contains filtered or unexported fields
}
func NewHTTPStats ¶
func (*HTTPStats) DoFilter ¶
func (hs *HTTPStats) DoFilter(pstat *parsers.ParsedHTTPStat) (bool, error)
func (*HTTPStats) SetOptions ¶
func (*HTTPStats) SetSortOptions ¶ added in v1.0.4
func (hs *HTTPStats) SetSortOptions(options *SortOptions)
func (*HTTPStats) SetURIMatchingGroups ¶
func (*HTTPStats) Sort ¶
func (hs *HTTPStats) Sort(sortOptions *SortOptions, reverse bool)
func (*HTTPStats) SortAvgRequestBodyBytes ¶
func (*HTTPStats) SortAvgResponseBodyBytes ¶
func (*HTTPStats) SortAvgResponseTime ¶
func (*HTTPStats) SortMaxRequestBodyBytes ¶
request
func (*HTTPStats) SortMaxResponseBodyBytes ¶
response
func (*HTTPStats) SortMaxResponseTime ¶
func (*HTTPStats) SortMethod ¶
func (*HTTPStats) SortMinRequestBodyBytes ¶
func (*HTTPStats) SortMinResponseBodyBytes ¶
func (*HTTPStats) SortMinResponseTime ¶
func (*HTTPStats) SortPNRequestBodyBytes ¶ added in v1.0.4
func (*HTTPStats) SortPNResponseBodyBytes ¶ added in v1.0.4
func (*HTTPStats) SortPNResponseTime ¶ added in v1.0.4
func (*HTTPStats) SortStddevRequestBodyBytes ¶
func (*HTTPStats) SortStddevResponseBodyBytes ¶
func (*HTTPStats) SortStddevResponseTime ¶
func (*HTTPStats) SortSumRequestBodyBytes ¶
func (*HTTPStats) SortSumResponseBodyBytes ¶
func (*HTTPStats) SortSumResponseTime ¶
func (*HTTPStats) SortWithOptions ¶
func (hs *HTTPStats) SortWithOptions()
type PrintOptions ¶ added in v1.0.5
type PrintOptions struct {
// contains filtered or unexported fields
}
func NewPrintOptions ¶ added in v1.0.5
func NewPrintOptions(noHeaders, showFooters, decodeUri bool, paginationLimit int) *PrintOptions
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func (*Printer) GenerateFooterWithDiff ¶ added in v1.0.10
func (*Printer) GenerateLineWithDiff ¶ added in v1.0.10
func (*Printer) SetHeaders ¶
type SortOptions ¶ added in v1.0.4
type SortOptions struct {
// contains filtered or unexported fields
}
func NewSortOptions ¶ added in v1.0.4
func NewSortOptions() *SortOptions
func (*SortOptions) Percentile ¶ added in v1.0.4
func (so *SortOptions) Percentile() int
func (*SortOptions) SetAndValidate ¶ added in v1.0.4
func (so *SortOptions) SetAndValidate(opt string) error
func (*SortOptions) SortType ¶ added in v1.0.4
func (so *SortOptions) SortType() string
Click to show internal directories.
Click to hide internal directories.