ref: dbf87a3a1c67949d89ef6fd35e66a13b839e0f3b
client/duplicated_models.go
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
package main // These are bloody duplicates, refactor project to use same // definitions between server and client type EventModel struct { IdClient string `json:"id_client"` Etime int64 `json:"etime"` Name string `json:"name"` } type MetricModel struct { IdClient string `json:"id_client" parquet:"name=id_client, type=BYTE_ARRAY, convertedtype=UTF8"` Mtime int64 `json:"mtime" parquet:"name=mtime, type=INT64, convertedtype=TIMESTAMP_MILLIS"` Name string `json:"name" parquet:"name=name, type=BYTE_ARRAY, convertedtype=UTF8"` Value string `json:"value" parquet:"name=value, type=BYTE_ARRAY, convertedtype=UTF8"` } type PositionModel struct { IdClient string `json:"id_client" parquet:"name=id_client, type=BYTE_ARRAY, convertedtype=UTF8"` Ptime int64 `json:"ptime" parquet:"name=ptime, type=INT64, convertedtype=TIMESTAMP_MILLIS"` Lon float64 `json:"lon" parquet:"name=lon, type=DOUBLE"` //TODO Check parquet types Lat float64 `json:"lat" parquet:"name=lat, type=DOUBLE"` //TODO Check parquet types Name string `json:"name" parquet:"name=name, type=BYTE_ARRAY, convertedtype=UTF8"` } |