File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,15 @@ package lock
1515
1616// TryLockRequest is a lock acquire request.
1717type TryLockRequest struct {
18- ResourceID string `json:"resourceId"`
19- LockOwner string `json:"lockOwner"`
20- ExpiryInSeconds int32 `json:"expiryInSeconds"`
18+ ResourceID string `json:"resourceId"`
19+ LockOwner string `json:"lockOwner"`
20+ ExpiryInSeconds int32 `json:"expiryInSeconds"`
21+ Metadata map [string ]string `json:"metadata"`
2122}
2223
2324// UnlockRequest is a lock release request.
2425type UnlockRequest struct {
25- ResourceID string `json:"resourceId"`
26- LockOwner string `json:"lockOwner"`
26+ ResourceID string `json:"resourceId"`
27+ LockOwner string `json:"lockOwner"`
28+ Metadata map [string ]string `json:"metadata"`
2729}
Original file line number Diff line number Diff line change @@ -15,12 +15,14 @@ package lock
1515
1616// Lock acquire request was successful or not.
1717type TryLockResponse struct {
18- Success bool `json:"success"`
18+ Success bool `json:"success"`
19+ Metadata map [string ]string `json:"metadata"`
1920}
2021
2122// Status when releasing the lock.
2223type UnlockResponse struct {
23- Status Status `json:"status"`
24+ Status Status `json:"status"`
25+ Metadata map [string ]string `json:"metadata"`
2426}
2527
2628type Status int32
You can’t perform that action at this time.
0 commit comments