proxy

package
v1.0.1-0...-422cc01 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OrgIDKey Key used to pass loki tenant id though the middleware context
	OrgIDKey key = iota
)

Variables

This section is empty.

Functions

func BasicAuth

func BasicAuth(handler http.HandlerFunc, authConfig *pkg.Authn) http.HandlerFunc

BasicAuth can be used as a middleware chain to authenticate users before proxying a request

func LogRequest

func LogRequest(handler http.HandlerFunc) http.HandlerFunc

LogRequest can be used as a middleware chain to log every request before proxying the request

func ReverseLoki

func ReverseLoki(reverseProxy *httputil.ReverseProxy, lokiServerURL *url.URL) http.HandlerFunc

ReverseLoki a

func Serve

func Serve(c *cli.Context) error

Serve serves

Types

This section is empty.

Jump to

Keyboard shortcuts

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