refactor: Introduce config struct for operations
This commit is contained in:
@@ -22,6 +22,17 @@ type DriveConfig struct {
|
||||
DriveIsRegular bool
|
||||
}
|
||||
|
||||
type BackendConfig struct {
|
||||
GetWriter func() (DriveWriterConfig, error)
|
||||
CloseWriter func() error
|
||||
|
||||
GetReader func() (DriveReaderConfig, error)
|
||||
CloseReader func() error
|
||||
|
||||
GetDrive func() (DriveConfig, error)
|
||||
CloseDrive func() error
|
||||
}
|
||||
|
||||
type MetadataConfig struct {
|
||||
Metadata *persisters.MetadataPersister
|
||||
}
|
||||
@@ -30,6 +41,7 @@ type PipeConfig struct {
|
||||
Compression string
|
||||
Encryption string
|
||||
Signature string
|
||||
RecordSize int
|
||||
}
|
||||
|
||||
type CryptoConfig struct {
|
||||
|
||||
Reference in New Issue
Block a user