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

web

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(cfg *Config) error

Serve serves the PromLens web UI and API.

Types

type Config

type Config struct {
	Logger                     *slog.Logger
	ToolkitConfig              *toolkitweb.FlagConfig
	RoutePrefix                string
	ExternalURL                *url.URL
	Sharer                     sharer.Sharer
	GrafanaBackend             *grafana.Backend
	DefaultPrometheusURL       string
	DefaultGrafanaDatasourceID int64
}

Config configures the PromLens web UI and API.

Jump to

Keyboard shortcuts

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