Documentation ¶
Index ¶
- func GenerateTestFloatHistogram(i int) *histogram.FloatHistogram
- func GenerateTestFloatHistograms(n int) (r []*histogram.FloatHistogram)
- func GenerateTestGaugeFloatHistogram(i int) *histogram.FloatHistogram
- func GenerateTestGaugeFloatHistograms(n int) (r []*histogram.FloatHistogram)
- func GenerateTestGaugeHistogram(i int) *histogram.Histogram
- func GenerateTestGaugeHistograms(n int) (r []*histogram.Histogram)
- func GenerateTestHistogram(i int) *histogram.Histogram
- func GenerateTestHistograms(n int) (r []*histogram.Histogram)
- func GenerateTestHistogramsWithUnknownResetHint(n int) []*histogram.Histogram
- func SetFloatHistogramCounterReset(h *histogram.FloatHistogram) *histogram.FloatHistogram
- func SetFloatHistogramNotCounterReset(h *histogram.FloatHistogram) *histogram.FloatHistogram
- func SetHistogramCounterReset(h *histogram.Histogram) *histogram.Histogram
- func SetHistogramNotCounterReset(h *histogram.Histogram) *histogram.Histogram
- func TestDirLockerUsage(t *testing.T, ...)
- type DirLocker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTestFloatHistogram ¶
func GenerateTestFloatHistogram(i int) *histogram.FloatHistogram
GenerateTestFloatHistogram but it is up to the user to set any known counter reset hint.
func GenerateTestFloatHistograms ¶
func GenerateTestFloatHistograms(n int) (r []*histogram.FloatHistogram)
func GenerateTestGaugeFloatHistogram ¶
func GenerateTestGaugeFloatHistogram(i int) *histogram.FloatHistogram
func GenerateTestGaugeFloatHistograms ¶
func GenerateTestGaugeFloatHistograms(n int) (r []*histogram.FloatHistogram)
func GenerateTestHistogram ¶
GenerateTestHistogram but it is up to the user to set any known counter reset hint.
func GenerateTestHistograms ¶
func SetFloatHistogramCounterReset ¶
func SetFloatHistogramCounterReset(h *histogram.FloatHistogram) *histogram.FloatHistogram
func SetFloatHistogramNotCounterReset ¶
func SetFloatHistogramNotCounterReset(h *histogram.FloatHistogram) *histogram.FloatHistogram
func TestDirLockerUsage ¶
func TestDirLockerUsage(t *testing.T, open func(t *testing.T, data string, createLock bool) (*DirLocker, testutil.Closer))
TestDirLockerUsage performs a set of tests which guarantee correct usage of DirLocker. open should use data as the storage directory, and createLock to determine if a lock file should be used.
Types ¶
type DirLocker ¶
type DirLocker struct {
// contains filtered or unexported fields
}
func NewDirLocker ¶
func NewDirLocker(dir, subsystem string, l log.Logger, r prometheus.Registerer) (*DirLocker, error)
NewDirLocker creates a DirLocker that can obtain an exclusive lock on dir.
Click to show internal directories.
Click to hide internal directories.