SampleDecoder wraps a Decoder to extract samples from the metric families decoded by the wrapped Decoder.
| 148 | // SampleDecoder wraps a Decoder to extract samples from the metric families |
| 149 | // decoded by the wrapped Decoder. |
| 150 | type SampleDecoder struct { |
| 151 | Dec Decoder |
| 152 | Opts *DecodeOptions |
| 153 | |
| 154 | f dto.MetricFamily |
| 155 | } |
| 156 | |
| 157 | // Decode calls the Decode method of the wrapped Decoder and then extracts the |
| 158 | // samples from the decoded MetricFamily into the provided model.Vector. |
nothing calls this directly
no outgoing calls
no test coverage detected