tools

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NoopCaching Use a Noop caching implementation
	NoopCaching = false
)

Functions

func GetCache

func GetCache(duration time.Duration) cache.Cacher

GetCache get a caching object

func SortLogKeys

func SortLogKeys(keys []string)

SortLogKeys sort log keys with fixed order for know keys

Types

type BoundedWaitGroup added in v0.2.0

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

BoundedWaitGroup is a wait group which has a limit boundary meaning it will wait for Done() to be called before releasing Add(n) if the limit has been reached

func NewBoundedWaitGroup added in v0.2.0

func NewBoundedWaitGroup(cap int) BoundedWaitGroup

NewBoundedWaitGroup returns a new BoundedWaitGroup

func (*BoundedWaitGroup) Add added in v0.2.0

func (bwg *BoundedWaitGroup) Add(delta int)

Add ...

func (*BoundedWaitGroup) Done added in v0.2.0

func (bwg *BoundedWaitGroup) Done()

Done ...

func (*BoundedWaitGroup) Wait added in v0.2.0

func (bwg *BoundedWaitGroup) Wait()

Wait ...

Jump to

Keyboard shortcuts

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