Extracting storage api to interface

This commit is contained in:
Frederick F. Kautz IV
2015-01-21 12:44:09 -08:00
parent 63d9689214
commit c23fa26830
5 changed files with 179 additions and 157 deletions

View File

@@ -29,14 +29,14 @@ import (
)
type minioApi struct {
storage *mstorage.Storage
storage mstorage.Storage
}
type encoder interface {
Encode(v interface{}) error
}
func HttpHandler(storage *mstorage.Storage) http.Handler {
func HttpHandler(storage mstorage.Storage) http.Handler {
mux := mux.NewRouter()
api := minioApi{
storage: storage,