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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.