stats

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 1 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 {
	// Enabled controls whether statistics collection is active.
	Enabled bool

	// Buffer configuration
	BufferSize     int
	FlushInterval  time.Duration
	FlushThreshold float64

	// Capture options
	CaptureClientIP    bool
	CaptureUserAgent   bool
	CaptureQueryParams bool

	// GeoIP configuration
	GeoIPEnabled bool
	GeoIPDBPath  string

	// Retention
	DetailedRetention   time.Duration
	AggregatedRetention time.Duration

	// Endpoints to track (empty = all federation endpoints)
	Endpoints []string
}

Config holds configuration for the stats collector.

Jump to

Keyboard shortcuts

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