Skip to main content

Module subduction

Module subduction 

Source
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§

StorageError
Errors creating storage.
SubductionInitError
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§

AuthenticatedDarnConnection
Type alias for an authenticated WebSocket client connection.
DarnAttachError
Concrete error type for attach operations.
DarnConnection
Type alias for the WebSocket client connection used by darn.
DarnIoError
Concrete error type for I/O operations during sync.
DarnRegistrationError
Concrete error type for registration operations.
DarnSubduction
Type alias for the Subduction instance used by darn workspaces.