mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
41 lines
935 B
Go
41 lines
935 B
Go
![]() |
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
type Handler func(w http.ResponseWriter, r *http.Request, c *Context)
|
||
|
|
||
|
func HeadConfig(w http.ResponseWriter, r *http.Request, c *Context) {
|
||
|
fmt.Fprintln(w, "head config")
|
||
|
}
|
||
|
|
||
|
func GetConfig(w http.ResponseWriter, r *http.Request, c *Context) {
|
||
|
fmt.Fprintln(w, "get config")
|
||
|
}
|
||
|
|
||
|
func PostConfig(w http.ResponseWriter, r *http.Request, c *Context) {
|
||
|
fmt.Fprintln(w, "post config")
|
||
|
}
|
||
|
|
||
|
func ListBlob(w http.ResponseWriter, r *http.Request, c *Context) {
|
||
|
fmt.Fprintln(w, "list blob")
|
||
|
}
|
||
|
|
||
|
func HeadBlob(w http.ResponseWriter, r *http.Request, c *Context) {
|
||
|
fmt.Fprintln(w, "head blob")
|
||
|
}
|
||
|
|
||
|
func GetBlob(w http.ResponseWriter, r *http.Request, c *Context) {
|
||
|
fmt.Fprintln(w, "get blob")
|
||
|
}
|
||
|
|
||
|
func PostBlob(w http.ResponseWriter, r *http.Request, c *Context) {
|
||
|
fmt.Fprintln(w, "post blob")
|
||
|
}
|
||
|
|
||
|
func DeleteBlob(w http.ResponseWriter, r *http.Request, c *Context) {
|
||
|
fmt.Fprintln(w, "delete blob")
|
||
|
}
|