Documentation ¶
Overview ¶
Package marshal converts internal objects to loghttp model objects. This package is designed to work with models in pkg/loghttp/legacy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteLabelResponseJSON ¶
func WriteLabelResponseJSON(l logproto.LabelResponse, w io.Writer) error
WriteLabelResponseJSON marshals the logproto.LabelResponse to legacy loghttp JSON and then writes it to the provided writer
func WriteQueryResponseJSON ¶
func WriteQueryResponseJSON(v logqlmodel.Result, w io.Writer) error
WriteQueryResponseJSON marshals promql.Value to legacy loghttp JSON and then writes it to the provided io.Writer
func WriteTailResponseJSON ¶
func WriteTailResponseJSON(r loghttp.TailResponse, c *websocket.Conn) error
WriteTailResponseJSON marshals the TailResponse to legacy loghttp JSON and then writes it to the provided connection
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.