Help us shape the future of Go! Take the 2026 Go Developer Survey

query

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	QueryString     string
	Start           time.Time
	End             time.Time
	Limit           int
	Forward         bool
	Step            time.Duration
	Quiet           bool
	NoLabels        bool
	IgnoreLabelsKey []string
	ShowLabelsKey   []string
	FixedLabelsLen  int
}

Query contains all necessary fields to execute instant and range queries and print the results.

func (*Query) DoQuery

func (q *Query) DoQuery(c *client.Client, out output.LogOutput)

DoQuery executes the query and prints out the results

func (*Query) SetInstant

func (q *Query) SetInstant(time time.Time)

SetInstant makes the Query an instant type

func (*Query) TailQuery

func (q *Query) TailQuery(delayFor int, c *client.Client, out output.LogOutput)

TailQuery connects to the Loki websocket endpoint and tails logs

Jump to

Keyboard shortcuts

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