Skip to main content

Module void_context

Module void_context 

Source
Expand description

Application-level dependency injection container.

VoidContext groups all the state a CLI invocation needs into a single value created once at startup. Subsystem structs (RepoPaths, CryptoContext, RepoMeta, SealConfig, NetworkConfig) keep related config together so consumers can accept only the slice they need.

This module is purely additive — existing APIs and callers are unchanged. Future waves will migrate *Options structs to accept &VoidContext instead of RepoContext + ad-hoc config values.

Structs§

CryptoContext
Encryption state needed for repository operations.
NetworkConfig
Network / transport configuration.
RepoMeta
Repository identity metadata.
RepoPaths
Filesystem paths for the repository.
SealConfig
Shard sealing / compression settings.
VoidContext
Application-level DI container for a single CLI invocation.