Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EpochToTime ¶ added in v0.9.0
EpochToTime takes a unix epoch time and uses precision to return back a time.Time
Types ¶
type Point ¶ added in v0.9.0
type Point struct { Name string `json:"name"` Tags map[string]string `json:"tags"` Timestamp Timestamp `json:"timestamp"` Values map[string]interface{} `json:"values"` Precision string `json:"precision"` }
Point defines the values that will be written to the database
func (*Point) UnmarshalJSON ¶ added in v0.9.0
UnmarshalJSON decodes the data into the Point struct
type Result ¶ added in v0.9.0
Result represents a resultset returned from a single statement.
func (*Result) MarshalJSON ¶ added in v0.9.0
MarshalJSON encodes the result into JSON.
func (*Result) UnmarshalJSON ¶ added in v0.9.0
UnmarshalJSON decodes the data into the Result struct
type Results ¶
Results represents a list of statement results.
func (Results) Error ¶
Error returns the first error from any statement. Returns nil if no errors occurred on any statements.
func (Results) MarshalJSON ¶
func (*Results) UnmarshalJSON ¶
UnmarshalJSON decodes the data into the Results struct
type Timestamp ¶
Timestamp is a custom type so we marshal JSON properly into UTC nanosecond time
func (Timestamp) MarshalJSON ¶
MarshalJSON returns time in UTC with nanoseconds