Help us shape the future of Go! Take the 2026 Go Developer Survey

testutil

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accumulator

type Accumulator struct {
	Points []*Point
}

func (*Accumulator) Add

func (a *Accumulator) Add(measurement string, value interface{}, tags map[string]string)

func (*Accumulator) AddValuesWithTime

func (a *Accumulator) AddValuesWithTime(
	measurement string,
	values map[string]interface{},
	tags map[string]string,
	timestamp time.Time,
)

func (*Accumulator) CheckTaggedValue

func (a *Accumulator) CheckTaggedValue(measurement string, val interface{}, tags map[string]string) bool

func (*Accumulator) CheckValue

func (a *Accumulator) CheckValue(measurement string, val interface{}) bool

func (*Accumulator) Get

func (a *Accumulator) Get(measurement string) (*Point, bool)

func (*Accumulator) HasFloatValue

func (a *Accumulator) HasFloatValue(measurement string) bool

func (*Accumulator) HasIntValue

func (a *Accumulator) HasIntValue(measurement string) bool

func (*Accumulator) ValidateTaggedValue

func (a *Accumulator) ValidateTaggedValue(measurement string, val interface{}, tags map[string]string) error

func (*Accumulator) ValidateValue

func (a *Accumulator) ValidateValue(measurement string, val interface{}) error

type Point

type Point struct {
	Measurement string
	Value       interface{}
	Tags        map[string]string
	Values      map[string]interface{}
	Time        time.Time
}

Jump to

Keyboard shortcuts

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