Skip to main content

Crate uptrakit_zeroconf

Crate uptrakit_zeroconf 

Source
Expand description

Uptrakit zeroconf contract — the single home for the mDNS/DNS-SD service type, the TXT record keys, and their build/parse logic, plus the browse primitives used by services and the CLI to locate a controller.

The advertised contract (SERVICE_TYPE + TXT keys) lives here and nowhere else: the controller-runtime advertiser builds its TXT records through build_txt_properties and every browser parses through parse_txt.

Structs§

DiscoveredController
A controller discovered via mDNS.

Enums§

ZeroconfError
Errors produced by the zeroconf browse primitives.

Constants§

SERVICE_TYPE
mDNS service type advertised by the controller and browsed by clients.
TXT_KEY_CA_FP
TXT record key: SHA-256 fingerprint of the controller’s active CA certificate.
TXT_KEY_PKI_ADDR
TXT record key: optional PKI endpoint address.
TXT_KEY_URL
TXT record key: optional HTTPS URL override (reverse proxy deployments).

Functions§

browse_all
Browse and collect all distinct controllers with an adaptive settle window.
browse_first
Browse for the first controller advertising the Uptrakit service type.
build_txt_properties
Build the TXT record property list the controller advertises.
parse_txt
Build a DiscoveredController from resolved mDNS service info.

Type Aliases§

Result
Boundary result alias covering all fallible functions in this crate.