mirror of
https://github.com/minio/minio.git
synced 2026-11-18 23:00:19 +00:00
Refactoring file storage driver to fsstorage
This commit is contained in:
1 parent
8a5b8ac90f
commit
0cf80e075e
5 files changed
+14
-23
No files matched your search
@@ -1,20 +1,6 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gorilla/mux"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type ObjectStorage interface {
|
||||
Get(path string) ([]byte, error)
|
||||
Put(path string, object []byte) error
|
||||
}
|
||||
|
||||
func RegisterStorageHandlers(router *mux.Router) {
|
||||
router.HandleFunc("/storage/rpc", StorageHandler)
|
||||
}
|
||||
|
||||
func StorageHandler(w http.ResponseWriter, req *http.Request) {
|
||||
fmt.Fprintf(w, "Storage")
|
||||
}
|
||||
Reference in new issue
Block a user