bucketer

package
v0.0.0-...-fa799f8 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2014 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const NaonsecondsPerMin time.Duration = 60000000000

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucketer

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

func NewBucketer

func NewBucketer(stats <-chan *stat.Stat, bucketedStats chan<- []*stat.Stat, shutdown <-chan bool) *Bucketer

NewBucketer constructs a Bucketer

func (*Bucketer) Run

func (b *Bucketer) Run(publishInterval time.Duration)

Run is a goroutine that reads stats from the input channel, placing them into the appropriate bucket. Buckets are published on the output channel at the specified interval

Jump to

Keyboard shortcuts

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