marshal

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

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 logql.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