package
2.9.12+incompatible
Repository: https://github.com/grafana/loki.git
Documentation: pkg.go.dev

# Packages

Package marshal converts internal objects to loghttp model objects.

# Functions

No description provided by the author
NewDroppedStream constructs a DroppedStream from a legacy.DroppedEntry.
NewLabelSet constructs a Labelset from a promql metric list as a string.
NewMatrix constructs a Matrix from a promql.Matrix.
NewMetric constructs a labels.Labels from a model.Metric.
NewResultValue constructs a ResultValue from a promql.Value.
NewSample constructs a model.Sample from a promql.Sample.
NewSampleStream constructs a model.SampleStream from a promql.Series.
No description provided by the author
NewStream constructs a Stream from a logproto.Stream.
NewStreams constructs a Streams from a logql.Streams.
NewTailResponse constructs a TailResponse from a legacy.TailResponse.
NewVector constructs a Vector from a promql.Vector.
WriteIndexStatsResponseJSON marshals a gatewaypb.Stats to JSON and then writes it to the provided io.Writer.
WriteLabelResponseJSON marshals a logproto.LabelResponse to v1 loghttp JSON and then writes it to the provided io.Writer.
WriteQueryResponseJSON marshals the promql.Value to v1 loghttp JSON and then writes it to the provided io.Writer.
No description provided by the author
WriteSeriesResponseJSON marshals a logproto.SeriesResponse to v1 loghttp JSON and then writes it to the provided io.Writer.
WriteTailResponseJSON marshals the legacy.TailResponse to v1 loghttp JSON and then writes it to the provided connection.
WriteVolumeResponseJSON marshals a logproto.VolumeResponse to JSON and then writes it to the provided io.Writer.

# Interfaces

WebsocketWriter knows how to write message to a websocket connection.