Commit Graph

7 Commits

Author SHA1 Message Date
Tom Wilkie
28a0dd9d76 Fix for new go1.6 lint rules. 2016-03-01 13:01:19 +00:00
Paul Bellamy
6cef1b10ca adding direction to connections from conntrack
* Remove report.EdgeMetadata.MaxConnCountTCP, as we don't display it anywhere
* Remove hostname metadata from local end of connection. We should be using the hostnodeid
2016-02-23 14:17:45 +00:00
Alfonso Acosta
0d917b2d8b Use github.com/ugorji/go/codec/ for wiring messages
* New encoding format:
  * Msgpack reports between probe<->app (smaller representation, faster to
    encode/decode).
  * Still use JSON between app<->UI (try to avoid making javascript deal with
    mspack).

  The app still suports publishing reports in both gob and JSON, not braking
  backwards compatibility.

* Use compile-time generated marshallers/unmarshallers for higher performance. In
  order to be able to skip code-generation for certain types, I included
  https://github.com/2opremio/go-1/tree/master/codec/codecgen instead of
  upstream until https://github.com/ugorji/go/pull/139 is merged.

* Encode/decode intermediate types using github.com/ugorji/go/codec.Selfer
  for higher performance and reducing garbage collection (no temporary buffers).
2016-02-16 06:31:31 +00:00
Paul Bellamy
852b8c0d5e adding test for EdgeMetadata.DeepEqual 2016-02-02 15:28:41 +00:00
Tom Wilkie
d1c0fcec2d Review feedback. 2016-01-25 08:39:42 -08:00
Paul Bellamy
d44f9cbf77 fixing panic on EdgeMetadatas deserialization by making valid zero value 2016-01-25 15:51:14 +00:00
Tom Wilkie
f071067289 Extend testing for EdgeMetadatas. 2016-01-24 09:50:08 -08:00