SampleDecoder wraps a Decoder to extract samples from the metric families decoded by the wrapped Decoder.
| 252 | // SampleDecoder wraps a Decoder to extract samples from the metric families |
| 253 | // decoded by the wrapped Decoder. |
| 254 | type SampleDecoder struct { |
| 255 | Dec Decoder |
| 256 | Opts *DecodeOptions |
| 257 | |
| 258 | f dto.MetricFamily |
| 259 | } |
| 260 | |
| 261 | // Decode calls the Decode method of the wrapped Decoder and then extracts the |
| 262 | // samples from the decoded MetricFamily into the provided model.Vector. |
nothing calls this directly
no outgoing calls
no test coverage detected