handler

package
v0.1.7-rc0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeQuery added in v0.1.2

func EncodeQuery(url string) string

loki query will fail if spaces or quotes are not encoded * we can't use url.QueryEscape or url.Values here since Loki doesn't manage encoded parenthesis

func ExportFlows added in v0.1.2

func ExportFlows(cfg *loki.Config) func(w http.ResponseWriter, r *http.Request)

func GetConfig added in v0.1.2

func GetConfig(filename string) func(w http.ResponseWriter, r *http.Request)

func GetFlows

func GetFlows(cfg *loki.Config) func(w http.ResponseWriter, r *http.Request)

func GetNames added in v0.1.2

func GetNames(cfg *loki.Config) func(w http.ResponseWriter, r *http.Request)

func GetNamespaces added in v0.1.2

func GetNamespaces(cfg *loki.Config) func(w http.ResponseWriter, r *http.Request)

func GetTopology added in v0.1.2

func GetTopology(cfg *loki.Config) func(w http.ResponseWriter, r *http.Request)

func LokiBuildInfos added in v0.1.3

func LokiBuildInfos(cfg *loki.Config) func(w http.ResponseWriter, r *http.Request)

func LokiConfig

func LokiConfig(cfg *loki.Config, param string) func(w http.ResponseWriter, r *http.Request)

func LokiMetrics added in v0.1.3

func LokiMetrics(cfg *loki.Config) func(w http.ResponseWriter, r *http.Request)

func LokiReady added in v0.1.3

func LokiReady(cfg *loki.Config) func(w http.ResponseWriter, r *http.Request)

func Status

func Status(w http.ResponseWriter, r *http.Request)

Types

type LokiError added in v0.1.3

type LokiError struct {
	DisplayMessage string
	Message        string
}

type QuickFilter added in v0.1.6

type QuickFilter struct {
	Name    string            `yaml:"name,omitempty" json:"name"`
	Filter  map[string]string `yaml:"filter,omitempty" json:"filter"`
	Default bool              `yaml:"default,omitempty" json:"default"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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