client_golang/prometheus/decoding
Matt T. Proud 85899b3f4a Extract core Prometheus value decoders.
Bernerd had suggested extracting the value decoders and bundling them
into the client library.  After some reflection, I tend to agree with
this, since we can start breaking the onion of Prometheus itself and
localize the protocol management into its own scope.

A couple of major changes since moving:

- Protocol 0.0.2 has moved to a struct{} so that our tests can perform
  value matching, which cannot be done against function literals.

- Processing now acquires options to dictate behavioral changes of
  metrics bodies.

- Processing no longer closes the stream, thusly returning this to the
  hands of the caller.

- Process() has been renamed to ProcessSingle to better convey that it
  works on complete message bodies.  This paves the way for better
  streaming payload support that the next API version will offer.
2013-06-10 19:35:41 +02:00
..
fixtures Extract core Prometheus value decoders. 2013-06-10 19:35:41 +02:00
decoding.go Extract core Prometheus value decoders. 2013-06-10 19:35:41 +02:00
discriminator.go Extract core Prometheus value decoders. 2013-06-10 19:35:41 +02:00
discriminator_test.go Extract core Prometheus value decoders. 2013-06-10 19:35:41 +02:00
helpers_test.go Extract core Prometheus value decoders. 2013-06-10 19:35:41 +02:00
model.go Extract core Prometheus value decoders. 2013-06-10 19:35:41 +02:00
model_test.go Extract core Prometheus value decoders. 2013-06-10 19:35:41 +02:00
processor.go Extract core Prometheus value decoders. 2013-06-10 19:35:41 +02:00
processor0_0_1.go Extract core Prometheus value decoders. 2013-06-10 19:35:41 +02:00
processor0_0_1_test.go Extract core Prometheus value decoders. 2013-06-10 19:35:41 +02:00
processor0_0_2.go Extract core Prometheus value decoders. 2013-06-10 19:35:41 +02:00
processor0_0_2_test.go Extract core Prometheus value decoders. 2013-06-10 19:35:41 +02:00