renew_handler.go 361 B

123456789101112131415161718
  1. package lock
  2. import (
  3. "net/http"
  4. _ "path"
  5. _ "github.com/gorilla/mux"
  6. )
  7. // renewLockHandler attempts to update the TTL on an existing lock.
  8. // Returns a 200 OK if successful. Otherwie
  9. func (h *handler) renewLockHandler(w http.ResponseWriter, req *http.Request) {
  10. /*
  11. vars := mux.Vars(req)
  12. key := path.Join(prefix, vars["key"])
  13. ttl := vars["ttl"]
  14. */
  15. }