RelayCatalogPlans

Pure Rust relay catalog, failover, and retry policy.

Functions

Link copied to clipboard
fun addCustom(current: List<RelayCatalogEntry>, relayUrl: String, createdAt: Long): List<RelayCatalogEntry>

Add or reactivate one user-owned relay.

Link copied to clipboard

Compute the stable released-Android conversation hash.

Link copied to clipboard
fun endpoint(configuredUrl: String): RelayEndpoint

Validate one configured endpoint and produce transport values.

Link copied to clipboard

Exclude an automatic relay or remove custom ownership.

Link copied to clipboard

Return ordered effective candidates after failedUrl.

Link copied to clipboard
fun reconcile(current: List<RelayCatalogEntry>, discovered: List<DnsRelayRecord>, refreshedAt: Long, fallbackUrl: String, dnsAuthenticated: Boolean): RelayCatalogPlan

Reconcile durable relay rows with authenticated DNS discovery.

Link copied to clipboard

Restore all currently discovered automatic relays.

Link copied to clipboard
fun retry(attempt: UInt, failure: RelayFailureKind, bypassDelayOnce: Boolean = false): RelayRetryPlan

Return the reconnect policy for one stable failure class.

Link copied to clipboard

Select exactly one effective active relay.