mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
Extracting storage api to interface
This commit is contained in:
@@ -21,7 +21,8 @@ import (
|
||||
"reflect"
|
||||
|
||||
"github.com/minio-io/minio/pkg/httpserver"
|
||||
storageModule "github.com/minio-io/minio/pkg/storage"
|
||||
mstorage "github.com/minio-io/minio/pkg/storage"
|
||||
"github.com/minio-io/minio/pkg/storage/inmemory"
|
||||
"github.com/minio-io/minio/pkg/webapi/minioapi"
|
||||
)
|
||||
|
||||
@@ -29,7 +30,11 @@ func Start() {
|
||||
var ctrlChans []chan<- string
|
||||
var statusChans []<-chan error
|
||||
|
||||
ctrlChan, statusChan, storage := storageModule.Start()
|
||||
var ctrlChan chan<- string
|
||||
var statusChan <-chan error
|
||||
var storage mstorage.Storage
|
||||
|
||||
ctrlChan, statusChan, storage = inmemory.Start()
|
||||
ctrlChans = append(ctrlChans, ctrlChan)
|
||||
statusChans = append(statusChans, statusChan)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user