Function tvix_castore::directoryservice::from_addr::from_addr
source · pub async fn from_addr(
uri: &str
) -> Result<Arc<dyn DirectoryService>, Box<dyn Error + Send + Sync>>
Expand description
Constructs a new instance of a DirectoryService from an URI.
The following URIs are supported:
memory:
Uses a in-memory implementation.sled:
Uses a in-memory sled implementation.sled:///absolute/path/to/somewhere
Uses sled, using a path on the disk for persistency. Can be only opened from one process at the same time.redb:
Uses a in-memory redb implementation.redb:///absolute/path/to/somewhere
Uses redb, using a path on the disk for persistency. Can be only opened from one process at the same time.grpc+unix:///absolute/path/to/somewhere
Connects to a local tvix-store gRPC service via Unix socket.grpc+http://host:port
,grpc+https://host:port
Connects to a (remote) tvix-store gRPC service.