LocalResources
Schema: services.capnp Extends: NetworkInterface, LocalStore
Extended local interface to provide access to the local file system and network connections This interface is intended to support interactive applications where the event loop in the main thread might be blocked for an extended amount of time. This interface allows another thread to proxy capabilities based on network connections & the file system to allow concurrent access to these resources, which is important if the local node acts as a hub connecting multiple different resources or exposes data from its local filesystem that might be needed with a delay. This interface is exposed through the LocalWorker class, that maintains the facilities to connect to it from multiple threads. !!! NEVER EXPOSE THIS INTERFACE EXTERNALLY !!!
Methods
root: () -> (root : RootService)
openArchive: (filename: Text) -> (ref : DataRef(AnyPointer))
writeArchive: (filename: Text, ref: DataRef(T)) -> ()
download: (ref: DataRef(T)) -> (ref : DataRef(T))
configureRoot: (LocalConfig) -> ()
w7xProvider: () -> (service : Provider)
openWarehouse: (url: Text, networkInterface: NetworkInterface) -> (object : Warehouse.GenericObject, storedObject : Warehouse.StoredObject)