loki

package
v0.1.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package loki provides functionalities for interacting with Loki

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Export

type Export struct {
	// contains filtered or unexported fields
}

type LabelJoiner

type LabelJoiner string

type Query

type Query struct {
	// contains filtered or unexported fields
}

Query for a LogQL HTTP petition The HTTP body of the query is composed by: {streamSelector}|lineFilters|json|labelFilters

func NewQuery

func NewQuery(labels []string, export bool) *Query

func (*Query) AddParam

func (q *Query) AddParam(key, value string) error

func (*Query) ExportColumns

func (q *Query) ExportColumns() []string

func (*Query) ExportFormat

func (q *Query) ExportFormat() string

func (*Query) PrepareToSubmit

func (q *Query) PrepareToSubmit() (*Query, error)

PrepareToSubmit returns a new Query that already handles the special behavior of some attributes that mustn't be used as part of a generic query.

func (*Query) URLQuery

func (q *Query) URLQuery() (string, error)

Jump to

Keyboard shortcuts

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