datum

package
v3.0.0-rc0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFloat

func GetFloat(d Datum) float64

func GetInt

func GetInt(d Datum) int64

func IncIntBy

func IncIntBy(d Datum, v int64, ts time.Time)

func SetFloat

func SetFloat(d Datum, v float64, ts time.Time)

func SetInt

func SetInt(d Datum, v int64, ts time.Time)

Types

type Datum

type Datum interface {
	// Type returns the Datum type.
	Type() Type

	Value() string

	Time() string
}

Datum

func MakeFloat

func MakeFloat(v float64, ts time.Time) Datum

func MakeInt

func MakeInt(v int64, ts time.Time) Datum

func NewFloat

func NewFloat() Datum

func NewInt

func NewInt() Datum

type Type

type Type int
const (
	Int Type = iota
	Float
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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