mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3/lease.go: TTL, document expired Lease.
This commit is contained in:
parent
940dace5d1
commit
a5d9bff24c
@ -50,7 +50,7 @@ type LeaseTimeToLiveResponse struct {
|
|||||||
*pb.ResponseHeader
|
*pb.ResponseHeader
|
||||||
ID LeaseID `json:"id"`
|
ID LeaseID `json:"id"`
|
||||||
|
|
||||||
// TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
|
// TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds. Expired lease will return -1.
|
||||||
TTL int64 `json:"ttl"`
|
TTL int64 `json:"ttl"`
|
||||||
|
|
||||||
// GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
|
// GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user