Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EpochToTime ¶
EpochToTime takes a unix epoch time and uses precision to return back a time.Time
Types ¶
type Point ¶
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 ¶
UnmarshalJSON decodes the data into the Point struct
type Result ¶
Result represents a resultset returned from a single statement.
func (*Result) MarshalJSON ¶
MarshalJSON encodes the result into JSON.
func (*Result) UnmarshalJSON ¶
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