import "github.com/mhausenblas/reshifter/app/handler"
Package handler implements the ReShifter HTTP handlers.
backup.go doc.go init.go other.go restore.go types.go
func BackupCreate(w http.ResponseWriter, r *http.Request)
BackupCreate responds to HTTP POST requests such as:
http GET localhost:8080/v1/backup endpoint=http://localhost:2379
func BackupList(w http.ResponseWriter, r *http.Request)
BackupList responds to HTTP GET requests at:
http GET localhost:8080/v1/backup/all?remote=play.minio.io:9000&bucket=test123
func BackupRetrieve(w http.ResponseWriter, r *http.Request)
BackupRetrieve responds to HTTP GET requests such as:
http GET localhost:8080/v1/backup/1498230556
func EPstats(w http.ResponseWriter, r *http.Request)
EPstats responds to HTTP GET requests such as:
http GET localhost:8080/v1/epstats?endpoint=http%3A%2F%2Flocalhost%3A2379
func Explorer(w http.ResponseWriter, r *http.Request)
Explorer responds to HTTP GET requests such as:
http GET localhost:8080/v1/explorer?endpoint=http%3A%2F%2Flocalhost%3A2379
func Restore(w http.ResponseWriter, r *http.Request)
Restore responds to HTTP POST requests such as:
http POST localhost:8080/v1/restore endpoint=http://localhost:2379 backupid=1498230556
func RestoreUpload(w http.ResponseWriter, r *http.Request)
RestoreUpload responds to HTTP POST requests at:
http POST localhost:8080/v1/restore/upload
func Version(w http.ResponseWriter, r *http.Request)
Version responds to HTTP GET requests of the form:
http GET localhost:8080/v1/version
type BackupRequest struct { Endpoint string `json:"endpoint"` Remote string `json:"remote"` Bucket string `json:"bucket"` Filter string `json:"filter"` APIversion string `json:"apiversion"` }
BackupRequest represents the request for a backup operation.
BackupResult represents the results of a backup operation.
type RestoreRequest struct { Endpoint string `json:"endpoint"` BackupID string `json:"backupid"` Remote string `json:"remote"` Bucket string `json:"bucket"` }
RestoreRequest represents the request for a restore operation.
type RestoreResult struct { Outcome string `json:"outcome"` KeysRestored int `json:"keysrestored"` ElapsedTime float64 `json:"elapsedtimeinsec"` }
RestoreResult represents the results of a restore operation.
Package handler imports 16 packages (graph) and is imported by 1 packages. Updated 2017-08-28. Refresh now. Tools for package owners.