Documentation
¶
Overview ¶
Package core coordinates detection probes and merges their results.
Index ¶
Constants ¶
const ( // DefaultTimeout bounds a run. The overall budget is generous enough that a healthy // desktop never approaches it, and the per-probe budget is short enough // that a single unresponsive server costs a fraction of a second rather // than the lot. DefaultTimeout = 2 * time.Second // DefaultProbeTimeout bounds each individual detection probe. DefaultProbeTimeout = 500 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config controls a detection run.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig is the configuration used when the caller supplies no options.
type Deps ¶
type Deps = dependencySet[ port.EnvProbe, port.OSProbe, port.SessionProbe, port.X11Probe, port.WaylandProbe, port.DesktopProbe, port.GPUProbe, port.StackProbe, port.PortalProbe, port.ProcessProbe, ]
Deps are the adapters an Engine runs. Every field may be nil, in which case the corresponding data is simply left unset.
type Option ¶
type Option func(*Config)
Option mutates a Config.
func WithProbeTimeout ¶
WithProbeTimeout bounds each individual probe.
func WithProcessScan ¶
func WithProcessScan() Option
WithProcessScan enables the /proc compositor fallback.
func WithSections ¶
WithSections selects which parts of the Environment to populate.
func WithTimeout ¶
WithTimeout bounds the whole detection run.