loki

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewLoki

func NewLoki(host string) *Client

func (*Client) QueryRange

func (l *Client) QueryRange(query string, limit int64, start, end time.Time, direction string) ([]Result, error)

func (*Client) WsProxy added in v0.0.6

func (l *Client) WsProxy() *websocketproxy.WebsocketProxy

type Data

type Data struct {
	ResultType string   `json:"resultType"`
	Result     []Result `json:"result"`
}

type Response

type Response struct {
	Status string `json:"status"`
	Data   Data   `json:"data"`
}

type Result

type Result struct {
	Stream Stream     `json:"stream"`
	Values [][]string `json:"values"`
}

type Stream

type Stream struct {
	Kind string `json:"kind"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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