Create creates a lock with the given depth, duration, owner and root (name). The depth will either be negative (meaning infinite) or zero. If Create returns ErrLocked then the Handler will write a "423 Locked" HTTP status. If it returns any other non-nil error, the Handler will write a "500 Interna
(now time.Time, details LockDetails)
| 67 | // URI as defined by RFC 3986, Section 4.3. In particular, it should not |
| 68 | // contain whitespace. |
| 69 | Create(now time.Time, details LockDetails) (token string, err error) |
| 70 | |
| 71 | // Refresh refreshes the lock with the given token. |
| 72 | // |
no outgoing calls