SwitchingNodeInfoReadDataSource

Constructors

Link copied to clipboard
constructor(dbManager: DatabaseProvider)

Functions

Link copied to clipboard
open suspend override 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
open override fun getNodesFlow(sort: String, includeUnknown: Boolean, hopsAwayMax: Int, lastHeardMin: Int): Flow<List<NodeWithRelations>>
Link copied to clipboard
open suspend override fun getNodesOlderThan(lastHeard: Int): List<NodeEntity>
Link copied to clipboard
open suspend override fun getUnknownNodes(): List<NodeEntity>
Link copied to clipboard
open override fun myNodeInfoFlow(): Flow<MyNodeEntity?>
Link copied to clipboard
open override fun nodeDBbyNumFlow(): Flow<Map<Int, NodeWithRelations>>