Documentation/dev-guide: Update TimeToLive documentation.

This commit is contained in:
Sam Batschelet 2017-12-20 15:31:41 -05:00 committed by Sam Batschelet
parent 94e50a1e68
commit eb65f26182
4 changed files with 4 additions and 4 deletions

View File

@ -480,7 +480,7 @@ Empty field.
| Field | Description | Type | | Field | Description | Type |
| ----- | ----------- | ---- | | ----- | ----------- | ---- |
| TTL | TTL is the advisory time-to-live in seconds. | int64 | | TTL | TTL is the advisory time-to-live in seconds. Expired lease will return -1. | int64 |
| ID | ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID. | int64 | | ID | ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID. | int64 |

View File

@ -1639,7 +1639,7 @@
"format": "int64" "format": "int64"
}, },
"TTL": { "TTL": {
"description": "TTL is the advisory time-to-live in seconds.", "description": "TTL is the advisory time-to-live in seconds. Expired lease will return -1.",
"type": "string", "type": "string",
"format": "int64" "format": "int64"
} }

View File

@ -1767,7 +1767,7 @@ func (m *WatchResponse) GetEvents() []*mvccpb.Event {
} }
type LeaseGrantRequest struct { type LeaseGrantRequest struct {
// TTL is the advisory time-to-live in seconds. // TTL is the advisory time-to-live in seconds. Expired lease will return -1.
TTL int64 `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"` TTL int64 `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
// ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID. // ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`

View File

@ -707,7 +707,7 @@ message WatchResponse {
} }
message LeaseGrantRequest { message LeaseGrantRequest {
// TTL is the advisory time-to-live in seconds. // TTL is the advisory time-to-live in seconds. Expired lease will return -1.
int64 TTL = 1; int64 TTL = 1;
// ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID. // ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
int64 ID = 2; int64 ID = 2;