Expand description
Subduction instance management for darn workspaces.
This module provides type aliases and helper functions for creating and managing Subduction instances that handle all sedimentree storage, signing, and peer-to-peer synchronization.
Storage is shared globally at ~/.config/darn/storage/ for deduplication
across workspaces.
Enums§
- Storage
Error - Errors creating storage.
- Subduction
Init Error - Errors initializing Subduction.
Functions§
- create_
global_ storage - Create global storage at the standard location.
- create_
storage_ at - Create storage at a custom path (for testing).
- hydrate
- Hydrate a Subduction instance from existing storage and spawn its background tasks.
- spawn
- Create a new Subduction instance and spawn its background tasks.
Type Aliases§
- Authenticated
Darn Connection - Type alias for an authenticated WebSocket client connection.
- Darn
Attach Error - Concrete error type for attach operations.
- Darn
Connection - Type alias for the WebSocket client connection used by darn.
- Darn
IoError - Concrete error type for I/O operations during sync.
- Darn
Registration Error - Concrete error type for registration operations.
- Darn
Subduction - Type alias for the Subduction instance used by darn workspaces.