handler

package
v0.1.2-rc0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 18 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 GetConfig added in v0.1.2

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

func GetFlows

func GetFlows(cfg LokiConfig, allowExport bool) func(w http.ResponseWriter, r *http.Request)

func GetNames added in v0.1.2

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

func GetNamespaces added in v0.1.2

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

func GetTopology added in v0.1.2

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

func Status

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

Types

type LokiConfig

type LokiConfig struct {
	URL      *url.URL
	Timeout  time.Duration
	TenantID string
	Labels   []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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