NodeInfoReadDataSource

Functions

Link copied to clipboard
abstract suspend fun getNodeDbSnapshot(): Map<Int, NodeWithRelations>

One-shot snapshot of every node row in the currently selected database. Bypasses the process-wide nodeDBbyNumFlow cache so callers see the live DB state at invocation time rather than a stateIn value that may belong to a previous transport.

Link copied to clipboard
abstract fun getNodesFlow(sort: String, includeUnknown: Boolean, hopsAwayMax: Int, lastHeardMin: Int): Flow<List<NodeWithRelations>>
Link copied to clipboard
abstract suspend fun getNodesOlderThan(lastHeard: Int): List<NodeEntity>
Link copied to clipboard
abstract suspend fun getUnknownNodes(): List<NodeEntity>
Link copied to clipboard
abstract fun myNodeInfoFlow(): Flow<MyNodeEntity?>
Link copied to clipboard
abstract fun nodeDBbyNumFlow(): Flow<Map<Int, NodeWithRelations>>