Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ChainDbArgs f m blk = ChainDbArgs {
- cdbImmDbArgs ∷ ImmutableDbArgs f m blk
- cdbVolDbArgs ∷ VolatileDbArgs f m blk
- cdbLgrDbArgs ∷ LgrDbArgs f m blk
- cdbsArgs ∷ ChainDbSpecificArgs f m blk
- data ChainDbSpecificArgs f m blk = ChainDbSpecificArgs {
- cdbsBlocksToAddSize ∷ Word
- cdbsGcDelay ∷ DiffTime
- cdbsGcInterval ∷ DiffTime
- cdbsRegistry ∷ HKD f (ResourceRegistry m)
- cdbsTracer ∷ Tracer m (TraceEvent blk)
- cdbsHasFSGsmDB ∷ HKD f (SomeHasFS m)
- cdbsTopLevelConfig ∷ HKD f (TopLevelConfig blk)
- cdbsLoE ∷ GetLoEFragment m blk
- newtype RelativeMountPoint = RelativeMountPoint FilePath
- completeChainDbArgs ∷ ∀ m blk. (ConsensusProtocol (BlockProtocol blk), IOLike m) ⇒ ResourceRegistry m → TopLevelConfig blk → ExtLedgerState blk → ChunkInfo → (blk → Bool) → (RelativeMountPoint → SomeHasFS m) → (RelativeMountPoint → SomeHasFS m) → Incomplete ChainDbArgs m blk → Complete ChainDbArgs m blk
- defaultArgs ∷ ∀ m blk. Monad m ⇒ Incomplete ChainDbArgs m blk
- ensureValidateAll ∷ ChainDbArgs f m blk → ChainDbArgs f m blk
- updateDiskPolicyArgs ∷ DiskPolicyArgs → ChainDbArgs f m blk → ChainDbArgs f m blk
- updateTracer ∷ Tracer m (TraceEvent blk) → ChainDbArgs f m blk → ChainDbArgs f m blk
Documentation
data ChainDbArgs f m blk Source #
ChainDbArgs | |
|
data ChainDbSpecificArgs f m blk Source #
Arguments specific to the ChainDB, not to the ImmutableDB, VolatileDB, or LedgerDB.
ChainDbSpecificArgs | |
|
newtype RelativeMountPoint Source #
A relative path for a MountPoint
The root is determined by context.
∷ ∀ m blk. (ConsensusProtocol (BlockProtocol blk), IOLike m) | |
⇒ ResourceRegistry m | |
→ TopLevelConfig blk | |
→ ExtLedgerState blk | Initial ledger |
→ ChunkInfo | |
→ (blk → Bool) | Check integrity |
→ (RelativeMountPoint → SomeHasFS m) | Immutable FS, see |
→ (RelativeMountPoint → SomeHasFS m) | Volatile FS, see |
→ Incomplete ChainDbArgs m blk | A set of incomplete arguments, possibly modified wrt |
→ Complete ChainDbArgs m blk |
defaultArgs ∷ ∀ m blk. Monad m ⇒ Incomplete ChainDbArgs m blk Source #
Default arguments
See defaultArgs
, defaultArgs
, defaultArgs
,
and defaultSpecificArgs
for a list of which fields are not given a default
and must therefore be set explicitly.
ensureValidateAll ∷ ChainDbArgs f m blk → ChainDbArgs f m blk Source #
updateDiskPolicyArgs ∷ DiskPolicyArgs → ChainDbArgs f m blk → ChainDbArgs f m blk Source #
updateTracer ∷ Tracer m (TraceEvent blk) → ChainDbArgs f m blk → ChainDbArgs f m blk Source #