ChronixDB / chronix.go

Native go client for Chronix
Apache License 2.0
3 stars 4 forks source link

Update client lib to newest Chronix encoding #9

Closed juliusv closed 8 years ago

juliusv commented 8 years ago

This is closely modeled after the Java version: https://github.com/ChronixDB/chronix.timeseries/blob/master/chronix-timeseries-converter/src/main/proto/MetricPoint.proto

I kept the signedness and bit width of almost all variables very closely aligned to the original, even if it didn't seem to make sense (like signed types which logically cannot be <0, or potential bugs around bit widths). I think there is room for improvement and even bug fixes in the original Java code here, but for now, I did not want to risk introducing new bugs by deviating too much in the Go version.

juliusv commented 8 years ago

Merging for now, as I need this for the updated ingester.