mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
19 lines
361 B
Go
19 lines
361 B
Go
package lock
|
|
|
|
import (
|
|
"net/http"
|
|
_ "path"
|
|
|
|
_ "github.com/gorilla/mux"
|
|
)
|
|
|
|
// renewLockHandler attempts to update the TTL on an existing lock.
|
|
// Returns a 200 OK if successful. Otherwie
|
|
func (h *handler) renewLockHandler(w http.ResponseWriter, req *http.Request) {
|
|
/*
|
|
vars := mux.Vars(req)
|
|
key := path.Join(prefix, vars["key"])
|
|
ttl := vars["ttl"]
|
|
*/
|
|
}
|