Documentation ¶
Index ¶
Constants ¶
View Source
const ( REarth = 6373.0 LatitudeSecondInMeters = LatitudeMinuteInMeters / 60.0 LatitudeMinuteInMeters = 1853.0 LatitudeDegreeInMeters = LatitudeMinuteInMeters * 60.0 )
View Source
const ( InfluxSF = `` /* 186-byte string literal not displayed */ InfluxAllSF = `` /* 157-byte string literal not displayed */ )
View Source
const (
InfluxDDR = `` /* 196-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Connect() error Write([]Metric) error Query(string) ([][]Metric, error) //QueryMeasurementWithGroupBy(string, string) ([][]Metric, error) //QueryMeasurementWithFilter(string, string) ([][]Metric, error) //QueryMeasurementWithMaxAge(string, string) ([][]Metric, error) //QueryMeasurementWithMaxAgeAndFilter(string, string, string) ([][]Metric, error) HasMetric(Metric, time.Time) bool Close() error }
type GeoJSON ¶
type GeoJSON interface { GetGeoJSONFromSF(string, string) (string, error) GetGeoJSONFromAllSF(string) (string, error) }
func NewGeoJSON ¶
type Metric ¶
type Metric interface { // Getting data structure functions Name() string Tags() map[string]string Fields() map[string]interface{} Time() time.Time // Tag functions HasTag(key string) bool AddTag(key, value string) RemoveTag(key string) // Field functions HasField(key string) bool AddField(key string, value interface{}) RemoveField(key string) error }
Click to show internal directories.
Click to hide internal directories.