lib

package
v1.3.2-hotfix-maintenance Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SortMetricsByNameAndTags

type SortMetricsByNameAndTags []m3.Metric

SortMetricsByNameAndTags ...

func (SortMetricsByNameAndTags) Len

func (a SortMetricsByNameAndTags) Len() int

Len ...

func (SortMetricsByNameAndTags) Less

func (a SortMetricsByNameAndTags) Less(i, j int) bool

Less ...

func (SortMetricsByNameAndTags) Swap

func (a SortMetricsByNameAndTags) Swap(i, j int)

Swap ...

type WaitAtLeast

type WaitAtLeast struct {
	// contains filtered or unexported fields
}

WaitAtLeast wait group signals the wait channel when at least the added count are done. This avoids sync.WaitGroup panic when count is negative.

Usage:

wg := WaitAtLeast{}
wg.Add(1)
wg.Wait()
go func() {
    wg.Done()
}()

func (*WaitAtLeast) Add

func (w *WaitAtLeast) Add(count int)

Add positive wait count.

func (*WaitAtLeast) Done

func (w *WaitAtLeast) Done()

Done subtracts one from the wait count.

func (*WaitAtLeast) Wait

func (w *WaitAtLeast) Wait()

Wait for matching add/done.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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