Discover Packages
github.com/abferm/loki-lite
handler
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 1, 2026
License: MIT
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
WithCompression wraps h with gzip compression when the client includes
Accept-Encoding: gzip in the request. Browsers, Grafana, and most HTTP
clients send this header by default.
Handler serves Loki-compatible HTTP endpoints backed by an Engine.
New creates a Handler that delegates query execution to eng.
func (*Handler) Handler ¶
Handler returns the http.Handler for this Loki API with compression and
logging middleware.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.