Help us shape the future of Go! Take the 2026 Go Developer Survey

handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCompression

func WithCompression(next http.Handler) http.Handler

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.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler serves Loki-compatible HTTP endpoints backed by an Engine.

func New

func New(eng *engine.Engine) *Handler

New creates a Handler that delegates query execution to eng.

func (*Handler) Handler

func (h *Handler) Handler() http.Handler

Handler returns the http.Handler for this Loki API with compression and logging middleware.

Jump to

Keyboard shortcuts

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