mirror of
https://github.com/minio/minio.git
synced 2024-12-25 14:45:54 -05:00
21 lines
377 B
Go
21 lines
377 B
Go
package minio
|
|
|
|
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")
|
|
}
|