Versions in this module Expand all Collapse all v0 v0.0.3 Feb 26, 2020 Changes in this version + func Info(filename string) (map[string]interface{}, error) + type Creator struct + func NewCreator(filename string, start time.Time, step uint) *Creator + func (c *Creator) Create(overwrite bool) error + func (c *Creator) DS(name, compute string, args ...interface{}) + func (c *Creator) RRA(cf string, args ...interface{}) + type Error string + func (e Error) Error() string + type Exporter struct + func NewExporter() *Exporter + func (e *Exporter) CDef(vname, rpn string) + func (e *Exporter) Def(vname, rrdfile, dsname, cf string, options ...string) + func (e *Exporter) SetDaemon(daemon string) + func (e *Exporter) SetMaxRows(maxRows uint) + func (e *Exporter) Xport(start, end time.Time, step time.Duration) (XportResult, error) + func (e *Exporter) XportDef(vname, label string) + type FetchResult struct + Cf string + DsNames []string + End time.Time + Filename string + RowCnt int + Start time.Time + Step time.Duration + func Fetch(filename, cf string, start, end time.Time, step time.Duration) (FetchResult, error) + func (r *FetchResult) FreeValues() + func (r *FetchResult) ValueAt(dsIndex, rowIndex int) float64 + func (r *FetchResult) Values() []float64 + type GraphInfo struct + Height uint + Print []string + Width uint + Ymax float64 + Ymin float64 + type Grapher struct + func NewGrapher() *Grapher + func (g *Grapher) AddOptions(options ...string) + func (g *Grapher) Area(value, color string, options ...string) + func (g *Grapher) CDef(vname, rpn string) + func (g *Grapher) Comment(s string) + func (g *Grapher) Def(vname, rrdfile, dsname, cf string, options ...string) + func (g *Grapher) GPrint(vname, format string) + func (g *Grapher) GPrintT(vname, format string) + func (g *Grapher) Graph(start, end time.Time) (GraphInfo, []byte, error) + func (g *Grapher) HRule(value, color string, options ...string) + func (g *Grapher) Line(width float32, value, color string, options ...string) + func (g *Grapher) Print(vname, format string) + func (g *Grapher) PrintT(vname, format string) + func (g *Grapher) SaveGraph(filename string, start, end time.Time) (GraphInfo, error) + func (g *Grapher) SetAltAutoscale() + func (g *Grapher) SetAltAutoscaleMax() + func (g *Grapher) SetAltAutoscaleMin() + func (g *Grapher) SetBase(base uint) + func (g *Grapher) SetBorder(width uint) + func (g *Grapher) SetColor(colortag, color string) + func (g *Grapher) SetDaemon(daemon string) + func (g *Grapher) SetImageFormat(format string) + func (g *Grapher) SetInterlaced() + func (g *Grapher) SetLazy() + func (g *Grapher) SetLogarithmic() + func (g *Grapher) SetLowerLimit(limit float64) + func (g *Grapher) SetNoGridFit() + func (g *Grapher) SetNoLegend() + func (g *Grapher) SetRightAxis(scale, shift float64) + func (g *Grapher) SetRightAxisLabel(label string) + func (g *Grapher) SetRigid() + func (g *Grapher) SetSize(width, height uint) + func (g *Grapher) SetSlopeMode() + func (g *Grapher) SetTitle(title string) + func (g *Grapher) SetUnitsExponent(e int) + func (g *Grapher) SetUnitsLength(l uint) + func (g *Grapher) SetUpperLimit(limit float64) + func (g *Grapher) SetVLabel(vlabel string) + func (g *Grapher) SetWatermark(watermark string) + func (g *Grapher) Shift(vname string, offset interface{}) + func (g *Grapher) TextAlign(align string) + func (g *Grapher) Tick(vname, color string, options ...string) + func (g *Grapher) VDef(vname, rpn string) + func (g *Grapher) VRule(t interface{}, color string, options ...string) + type Updater struct + func NewUpdater(filename string) *Updater + func (u *Updater) Cache(args ...interface{}) + func (u *Updater) SetTemplate(dsName ...string) + func (u *Updater) Update(args ...interface{}) error + type XportResult struct + End time.Time + Legends []string + RowCnt int + Start time.Time + Step time.Duration + func (r *XportResult) FreeValues() + func (r *XportResult) ValueAt(legendIndex, rowIndex int) float64