Documentation
¶
Overview ¶
*Copyright 2016 yubo. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file.
*Copyright 2016 yubo. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Creator ¶
type Creator struct {
// contains filtered or unexported fields
}
func NewCreator ¶
NewCreator returns new Creator object. You need to call Create to really create database file.
filename - name of database file start - don't accept any data timed before or at time specified step - base interval in seconds with which data will be fed into RRD
type FetchResult ¶
type FetchResult struct {
Filename string
Cf string
Start time.Time
End time.Time
Step time.Duration
DsNames []string
RowCnt int
// contains filtered or unexported fields
}
func (*FetchResult) FreeValues ¶
func (r *FetchResult) FreeValues()
FreeValues free values memory allocated by C.
func (*FetchResult) ValueAt ¶
func (r *FetchResult) ValueAt(dsIndex, rowIndex int) float64
func (*FetchResult) Values ¶
func (r *FetchResult) Values() []float64
Values returns copy of internal array of values.
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
func NewUpdater ¶
func (*Updater) Cache ¶
func (u *Updater) Cache(args ...interface{})
Cache chaches data for later save using Update(). Use it to avoid open/read/write/close for every update.