type Decoder …
type DecodeOptions …
func ResponseFormat(h http.Header) Format { … }
func NewDecoder(r io.Reader, format Format) Decoder { … }
type protoDecoder …
func (d *protoDecoder) Decode(v *dto.MetricFamily) error { … }
type textDecoder …
func (d *textDecoder) Decode(v *dto.MetricFamily) error { … }
type SampleDecoder …
func (sd *SampleDecoder) Decode(s *model.Vector) error { … }
func ExtractSamples(o *DecodeOptions, fams ...*dto.MetricFamily) (model.Vector, error) { … }
func extractSamples(f *dto.MetricFamily, o *DecodeOptions) (model.Vector, error) { … }
func extractCounter(o *DecodeOptions, f *dto.MetricFamily) model.Vector { … }
func extractGauge(o *DecodeOptions, f *dto.MetricFamily) model.Vector { … }
func extractUntyped(o *DecodeOptions, f *dto.MetricFamily) model.Vector { … }
func extractSummary(o *DecodeOptions, f *dto.MetricFamily) model.Vector { … }
func extractHistogram(o *DecodeOptions, f *dto.MetricFamily) model.Vector { … }