Versions in this module Expand all Collapse all v1 v1.0.2 Nov 20, 2022 Changes in this version + func AlmostEqualFloat64(a, b, epsilon float64) bool + func AlmostEqualFloat64s(a, b []float64, epsilon float64) bool + func GetUnifiedDiffString(diff UnifiedDiff) (string, error) + func NormalizeMetricFamilies(metricFamiliesByName map[string]*dto.MetricFamily) []*dto.MetricFamily + func RuntimeMetricsBucketsForUnit(buckets []float64, unit string) []float64 + func RuntimeMetricsToProm(d *metrics.Description) (string, string, string, bool) + func SplitLines(s string) []string + func WriteUnifiedDiff(writer io.Writer, diff UnifiedDiff) error + type GoCollectorOptions struct + DisableMemStatsLikeMetrics bool + RuntimeMetricRules []GoCollectorRule + RuntimeMetricSumForHist map[string]string + type GoCollectorRule struct + Deny bool + Matcher *regexp.Regexp + type LabelPairSorter []*dto.LabelPair + func (s LabelPairSorter) Len() int + func (s LabelPairSorter) Less(i, j int) bool + func (s LabelPairSorter) Swap(i, j int) + type Match struct + A int + B int + Size int + type MetricSorter []*dto.Metric + func (s MetricSorter) Len() int + func (s MetricSorter) Less(i, j int) bool + func (s MetricSorter) Swap(i, j int) + type OpCode struct + I1 int + I2 int + J1 int + J2 int + Tag byte + type SequenceMatcher struct + IsJunk func(string) bool + func NewMatcher(a, b []string) *SequenceMatcher + func NewMatcherWithJunk(a, b []string, autoJunk bool, isJunk func(string) bool) *SequenceMatcher + func (m *SequenceMatcher) GetGroupedOpCodes(n int) [][]OpCode + func (m *SequenceMatcher) GetMatchingBlocks() []Match + func (m *SequenceMatcher) GetOpCodes() []OpCode + func (m *SequenceMatcher) QuickRatio() float64 + func (m *SequenceMatcher) Ratio() float64 + func (m *SequenceMatcher) RealQuickRatio() float64 + func (m *SequenceMatcher) SetSeq1(a []string) + func (m *SequenceMatcher) SetSeq2(b []string) + func (m *SequenceMatcher) SetSeqs(a, b []string) + type UnifiedDiff struct + A []string + B []string + Context int + Eol string + FromDate string + FromFile string + ToDate string + ToFile string