Refactoring file storage driver to fsstorage

This commit is contained in:
Frederick F. Kautz IV
2014-12-08 14:25:57 -08:00
parent 8a5b8ac90f
commit 0cf80e075e
5 changed files with 14 additions and 23 deletions

View File

@@ -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")
}