Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDBPath ¶ added in v0.18.0
func DefaultDBPath() string
DefaultDBPath returns the OS-specific path where waggle stores its SQLite database when neither --db-path nor WAGGLE_DB is set. Resolution is handled by github.com/adrg/xdg, which maps XDG_DATA_HOME to ~/Library/Application Support on macOS and %LOCALAPPDATA% on Windows. Falls back to ./waggle.db if the user-data dir cannot be resolved.
Types ¶
type Config ¶
type Config struct {
DBPath string
Addr string
IngestAddr string
UIAddr string
GRPCAddr string
NoOpenBrowser bool
Retention time.Duration
LogLevel string
Dev bool
// Version, when set via --version, makes main print the build version
// and exit before starting any listeners.
Version bool
// MCPEnabled mounts the read-only Model Context Protocol endpoint at
// /mcp on the UI listener, letting an MCP client (e.g. Claude) explore
// stored traces/metrics/logs. Defaults on; the surface is read-only and
// inherits the UI listener's bind address.
MCPEnabled 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 (*Config) SplitListeners ¶
Click to show internal directories.
Click to hide internal directories.