Adding simple file storage driver for persistent storage

This commit is contained in:
Frederick F. Kautz IV
2014-11-14 18:22:50 -07:00
parent 2679324afe
commit 44b28166f5
6 changed files with 164 additions and 45 deletions
+5
View File
@@ -6,6 +6,11 @@ import (
"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)
}