[#1715] compression: Decouple Config and Compressor
Refactoring. Change-Id: Ide2e1378f30c39045d4bacd13a902331bd4f764f Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
98308d0cad
commit
8c746a914a
12 changed files with 49 additions and 41 deletions
|
@ -18,8 +18,8 @@ type Storage interface {
|
|||
Path() string
|
||||
ObjectsCount(ctx context.Context) (uint64, error)
|
||||
|
||||
SetCompressor(cc *compression.Config)
|
||||
Compressor() *compression.Config
|
||||
SetCompressor(cc *compression.Compressor)
|
||||
Compressor() *compression.Compressor
|
||||
|
||||
// SetReportErrorFunc allows to provide a function to be called on disk errors.
|
||||
// This function MUST be called before Open.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue