Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicSink ¶
type BasicSink struct { RetErr error PointsChan chan []*datapoint.Datapoint // contains filtered or unexported fields }
BasicSink is a pure testing sink that blocks forwarded points onto a channel
func NewBasicSink ¶
func NewBasicSink() *BasicSink
NewBasicSink creates a BasicSink with an unbuffered chan. Note, calls to AddDatapoints will then block until you drain the PointsChan.
func (*BasicSink) AddDatapoints ¶
AddDatapoints buffers the point on an internal chan or returns errors if RetErr is set
func (*BasicSink) Next ¶
Next returns a single datapoint from the top of PointsChan and panics if the top doesn't contain only one point
type DatapointSource ¶
type DatapointSource struct { CurrentIndex int64 Metric string Dims map[string]string Dptype datapoint.MetricType TimeSource func() time.Time // contains filtered or unexported fields }
DatapointSource is a simple way to generate throw away datapoints
func (*DatapointSource) Next ¶
func (d *DatapointSource) Next() *datapoint.Datapoint
Next returns a unique datapoint
Click to show internal directories.
Click to hide internal directories.