data

package
v0.0.0-...-33d3a8e Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MeasurementGroup

type MeasurementGroup struct {
	// contains filtered or unexported fields
}

func NewMeasurementGroup

func NewMeasurementGroup(
	conf *db.DBConf,
	location *time.Location,
	name string,
) (*MeasurementGroup, error)

func (*MeasurementGroup) CreateTablesIfNone

func (mt *MeasurementGroup) CreateTablesIfNone() error

func (*MeasurementGroup) WriteSync

func (mt *MeasurementGroup) WriteSync(p *Point) error

type Point

type Point struct {
	// contains filtered or unexported fields
}

func NewPoint

func NewPoint(name string) *Point

func (*Point) HasTags

func (p *Point) HasTags() bool

func (*Point) IntValue

func (p *Point) IntValue() int64

func (*Point) Name

func (p *Point) Name() string

func (*Point) SetIntValue

func (p *Point) SetIntValue(v int64) *Point

func (*Point) SetTag

func (p *Point) SetTag(name, value string) *Point

func (*Point) SetTags

func (p *Point) SetTags(tags map[string]string) *Point

func (*Point) SetTime

func (p *Point) SetTime(t time.Time) *Point

func (*Point) SetValue

func (p *Point) SetValue(v float64) *Point

func (*Point) Tag

func (p *Point) Tag(name string) string

func (*Point) Tags

func (p *Point) Tags() map[string]string

func (*Point) Time

func (p *Point) Time() time.Time

func (*Point) Value

func (p *Point) Value() float64

Jump to

Keyboard shortcuts

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