package
3.4.2
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
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.
NewVector constructs a Vector from a promql.Vector.
No description provided by the author
WriteDetectedFieldsResponseJSON marshals a logproto.DetectedFieldsResponse to JSON and then writes it to the provided io.Writer.
WriteDetectedLabelsResponseJSON marshals a logproto.DetectedLabelsResponse to JSON and then writes it to the provided io.Writer.
WriteIndexShardsResponseJSON marshals a indexgatewaypb.ShardsResponse to JSON and then writes it to the provided io.Writer.
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.
WriteQueryPatternsResponseJSON marshals a logproto.QueryPatternsResponse to 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 writer.
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.