You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
379 B
20 lines
379 B
package storage
|
|
|
|
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")
|
|
}
|
|
|