repo

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: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLastNRawStats

func GetLastNRawStats(name string, last int) ([]stat.Stat, error)

func GetRawStats

func GetRawStats(name string, start, end time.Time) ([]stat.Stat, error)

Types

type StatRepo

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

func NewStatRepo

func NewStatRepo(rawStats <-chan *stat.Stat, shutdown <-chan bool) *StatRepo

NewStatRepo constructs a StatRepo

func (*StatRepo) Run

func (s *StatRepo) Run()

Run is a goroutine that writes 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