lib

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: MIT Imports: 3 Imported by: 12

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