commit
73dfbd5a70
|
@ -20,7 +20,7 @@ The lock service exposes client-side locking facilities as a gRPC interface.
|
|||
| Field | Description | Type |
|
||||
| ----- | ----------- | ---- |
|
||||
| name | name is the identifier for the distributed shared lock to be acquired. | bytes |
|
||||
| lease | lease is the ID of the lease that will be attached to ownership of the lock. If the lease expires or is revoked and currently holds the lock, the lock is automatically released. Calls to Lock with the same lease will be treated as a single acquistion; locking twice with the same lease is a no-op. | int64 |
|
||||
| lease | lease is the ID of the lease that will be attached to ownership of the lock. If the lease expires or is revoked and currently holds the lock, the lock is automatically released. Calls to Lock with the same lease will be treated as a single acquisition; locking twice with the same lease is a no-op. | int64 |
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
"lease": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"description": "lease is the ID of the lease that will be attached to ownership of the\nlock. If the lease expires or is revoked and currently holds the lock,\nthe lock is automatically released. Calls to Lock with the same lease will\nbe treated as a single acquistion; locking twice with the same lease is a\nno-op."
|
||||
"description": "lease is the ID of the lease that will be attached to ownership of the\nlock. If the lease expires or is revoked and currently holds the lock,\nthe lock is automatically released. Calls to Lock with the same lease will\nbe treated as a single acquisition; locking twice with the same lease is a\nno-op."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -50,7 +50,7 @@ type LockRequest struct {
|
|||
// lease is the ID of the lease that will be attached to ownership of the
|
||||
// lock. If the lease expires or is revoked and currently holds the lock,
|
||||
// the lock is automatically released. Calls to Lock with the same lease will
|
||||
// be treated as a single acquistion; locking twice with the same lease is a
|
||||
// be treated as a single acquisition; locking twice with the same lease is a
|
||||
// no-op.
|
||||
Lease int64 `protobuf:"varint,2,opt,name=lease,proto3" json:"lease,omitempty"`
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ message LockRequest {
|
|||
// lease is the ID of the lease that will be attached to ownership of the
|
||||
// lock. If the lease expires or is revoked and currently holds the lock,
|
||||
// the lock is automatically released. Calls to Lock with the same lease will
|
||||
// be treated as a single acquistion; locking twice with the same lease is a
|
||||
// be treated as a single acquisition; locking twice with the same lease is a
|
||||
// no-op.
|
||||
int64 lease = 2;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue