Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultRefreshInterval = 5 * time.Minute
DefaultRefreshInterval is used for any source that did not configure `refresh_interval`. Picked to balance "feels live" with not hammering upstream APIs.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Closer ¶
type Closer interface {
Close() error
}
Closer is an optional source capability for implementations that hold resources beyond a single Load call.
type Entry ¶
Entry pairs a Source with its refresh interval. The registry uses this to run periodic re-discovery in the background.
RefreshInterval == 0 means "do not refresh after the initial load".
type LogAttributer ¶
LogAttributer is an optional source capability for adding safe, source-specific context to lifecycle logs.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package api implements the generic JSON-over-HTTP source.
|
Package api implements the generic JSON-over-HTTP source. |
|
Package dnssd implements Prometheus-style DNS service discovery for SRV records.
|
Package dnssd implements Prometheus-style DNS service discovery for SRV records. |
|
Package netbird reads peers from a NetBird management server's REST API (NetBird Cloud or self-hosted) and emits a compass.Service for each peer that has an IP or DNS label.
|
Package netbird reads peers from a NetBird management server's REST API (NetBird Cloud or self-hosted) and emits a compass.Service for each peer that has an IP or DNS label. |
|
Package static implements the trivial source whose services are listed directly in compass.yaml.
|
Package static implements the trivial source whose services are listed directly in compass.yaml. |
Click to show internal directories.
Click to hide internal directories.