mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 20:50:22 +03:00
Adding simple file storage driver for persistent storage
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user