mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Extracting storage api to interface
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user