config

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DBPath        string
	Addr          string
	IngestAddr    string
	UIAddr        string
	NoOpenBrowser bool
	Retention     time.Duration
	LogLevel      string
	Dev           bool

	// Tee: mirror incoming log records to a file or stdout in one of
	// several human-readable formats, so a dev can pipe them to `less`
	// in a shell next to the UI. Tee is strictly a passthrough — what
	// lands on the tee is a subset of what's stored, and the store is
	// still authoritative.
	TeePath     string   // path to mirror file, or "-" for stdout. Empty = disabled.
	TeeServices []string // parsed from --tee-service (comma-separated). Empty = all services.
	TeeMinSev   int32    // minimum severity_number (OTel); 0 = no floor.
	TeeFormat   string   // "console" (default) | "logfmt" | "json"
	TeeColor    string   // "auto" (default, TTY-detect) | "always" | "never"
}

func Load

func Load() (*Config, error)

func (*Config) SplitListeners

func (c *Config) SplitListeners() bool

Jump to

Keyboard shortcuts

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