SampleDecoder wraps a Decoder to extract samples from the metric families decoded by the wrapped Decoder.
| 173 | // SampleDecoder wraps a Decoder to extract samples from the metric families |
| 174 | // decoded by the wrapped Decoder. |
| 175 | type SampleDecoder struct { |
| 176 | Dec Decoder |
| 177 | Opts *DecodeOptions |
| 178 | |
| 179 | f dto.MetricFamily |
| 180 | } |
| 181 | |
| 182 | // Decode calls the Decode method of the wrapped Decoder and then extracts the |
| 183 | // samples from the decoded MetricFamily into the provided model.Vector. |
nothing calls this directly
no outgoing calls
no test coverage detected