package
0.0.0-20241004052545-caa2fb9b60ae
Repository: https://github.com/grafana/mimir.git
Documentation: pkg.go.dev
# Functions
ConsistencyMiddleware takes the consistency level from the X-Read-Consistency header and sets it in the context.
ContextWithReadConsistencyEncodedOffsets returns a new context with the given partition offsets.
ContextWithReadConsistencyLevel returns a new context with the given consistency level.
EncodeOffsets serialise the input offsets into a string which is safe to be used as HTTP header value.
No description provided by the author
No description provided by the author
No description provided by the author
ReadConsistencyEncodedOffsetsFromContext returns the partition offsets to enforce strong read consistency.
ReadConsistencyLevelFromContext returns the consistency level from the context if set via ContextWithReadConsistencyLevel.
No description provided by the author
No description provided by the author
# Constants
ContentTypeRemoteReadStreamedChunks is taken from the prometheus protobuf definitions documentation.
ReadConsistencyEventual is the default consistency level for all queries.
No description provided by the author
No description provided by the author
ReadConsistencyStrong means that a query sent by the same client will always observe the writes that have completed before issuing the query.
# Variables
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
EncodedOffsets holds the encoded partition offsets.