Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
Bucket type struct
func (*Bucket) LastValue ¶
func (b *Bucket) LastValue() *common.SinglePointValue
LastValue - get bucket last value
func (*Bucket) SetResolution ¶
SetResolution - set bucket resolution
func (*Bucket) ValuesSince ¶
func (b *Bucket) ValuesSince(tm time.Time) []*common.SinglePointValue
ValuesSince - get bucket values simce time
type SimpleBucket ¶
type SimpleBucket struct {
// contains filtered or unexported fields
}
SimpleBucket type struct
func NewSimpleBucket ¶
func NewSimpleBucket(resolution, size int) *SimpleBucket
NewSimpleBucket - create simple bucket
func (*SimpleBucket) Add ¶
func (b *SimpleBucket) Add(timestamp int64, val interface{})
Add - add to bucket
func (*SimpleBucket) LastValue ¶
func (b *SimpleBucket) LastValue() interface{}
LastValue - get last value
func (*SimpleBucket) ValuesSince ¶
func (b *SimpleBucket) ValuesSince(tm time.Time) []interface{}
ValuesSince - get values since time
Click to show internal directories.
Click to hide internal directories.