marshal

package
v3.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL