package
0.0.0-20230331131523-deb0478a2e52
Repository: https://github.com/hellobchain/third_party.git
Documentation: pkg.go.dev

# Functions

ExtractSamples builds a slice of samples from the provided metric families.
MetricFamilyToText converts a MetricFamily proto message into text format and writes the resulting lines to 'out'.
Negotiate returns the Content-Type based on the given Accept header.
NewDecoder returns a new decoder based on the given input format.
NewEncoder returns a new encoder based on content type negotiation.
ResponseFormat extracts the correct format from a HTTP response header.

# Constants

Constants to assemble the Content-Type values for the different wire protocols.
Constants to assemble the Content-Type values for the different wire protocols.
Constants to assemble the Content-Type values for the different wire protocols.
Constants to assemble the Content-Type values for the different wire protocols.
The Content-Type values for the different wire protocols.
Constants to assemble the Content-Type values for the different wire protocols.
Constants to assemble the Content-Type values for the different wire protocols.
Constants to assemble the Content-Type values for the different wire protocols.
Constants to assemble the Content-Type values for the different wire protocols.

# Structs

DecodeOptions contains options used by the Decoder and in sample extraction.
ParseError signals errors while parsing the simple and flat text-based exchange format.
SampleDecoder wraps a Decoder to extract samples from the metric families decoded by the wrapped Decoder.
TextParser is used to parse the simple and flat text-based exchange format.

# Interfaces

Decoder types decode an input stream into metric families.
Encoder types encode metric families into an underlying wire protocol.

# Type aliases

Format specifies the HTTP content type of the different wire protocols.