# Packages
Package marshal converts internal objects to loghttp model objects.
# Functions
NewDroppedStream constructs a DroppedStream from a legacy.DroppedEntry.
NewEntry constructs an Entry from a logproto.Entry.
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.
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.
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.