SampleDecoder wraps a Decoder to extract samples from the metric families decoded by the wrapped Decoder.
| 180 | // SampleDecoder wraps a Decoder to extract samples from the metric families |
| 181 | // decoded by the wrapped Decoder. |
| 182 | type SampleDecoder struct { |
| 183 | Dec Decoder |
| 184 | Opts *DecodeOptions |
| 185 | |
| 186 | f dto.MetricFamily |
| 187 | } |
| 188 | |
| 189 | // Decode calls the Decode method of the wrapped Decoder and then extracts the |
| 190 | // samples from the decoded MetricFamily into the provided model.Vector. |
nothing calls this directly
no outgoing calls
no test coverage detected