StorageConfig constructor

const StorageConfig({
  1. String baseDir = '.ipfs',
  2. int maxStorageSize = 10 * 1024 * 1024 * 1024,
  3. String blocksDir = 'blocks',
  4. String datastoreDir = 'datastore',
  5. String keysDir = 'keys',
  6. bool enableGC = true,
  7. Duration gcInterval = const Duration(hours: 1),
  8. int maxBlockSize = 1024 * 1024 * 2,
})

Creates a new StorageConfig with default paths and limits.

Implementation

const StorageConfig({
  this.baseDir = '.ipfs',
  this.maxStorageSize = 10 * 1024 * 1024 * 1024, // 10GB default
  this.blocksDir = 'blocks',
  this.datastoreDir = 'datastore',
  this.keysDir = 'keys',
  this.enableGC = true,
  this.gcInterval = const Duration(hours: 1),
  this.maxBlockSize = 1024 * 1024 * 2, // 2MB default
});