Moving gateway and storage driver to packages

This commit is contained in:
Frederick F. Kautz IV
2014-11-29 14:42:22 -08:00
parent d6b65f1f04
commit 03beef3afc
9 changed files with 27 additions and 23 deletions
+20
View File
@@ -0,0 +1,20 @@
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")
}