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.
21 lines
379 B
21 lines
379 B
10 years ago
|
package storage
|
||
10 years ago
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"github.com/gorilla/mux"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
10 years ago
|
type ObjectStorage interface {
|
||
|
Get(path string) ([]byte, error)
|
||
|
Put(path string, object []byte) error
|
||
|
}
|
||
|
|
||
10 years ago
|
func RegisterStorageHandlers(router *mux.Router) {
|
||
|
router.HandleFunc("/storage/rpc", StorageHandler)
|
||
|
}
|
||
|
|
||
|
func StorageHandler(w http.ResponseWriter, req *http.Request) {
|
||
|
fmt.Fprintf(w, "Storage")
|
||
|
}
|