You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Range |`RangeRequest`|`RangeResponse`| Range gets the keys in the range from the store. |
43
+
| Put |`PutRequest`|`PutResponse`| Put puts the given key into the store. A put request increases the revision of the store, and generates one event in the event history. |
44
+
| DeleteRange |`DeleteRangeRequest`|`DeleteRangeResponse`| Delete deletes the given range from the store. A delete request increase the revision of the store, and generates one event in the event history. |
45
+
| Txn |`TxnRequest`|`TxnResponse`| Txn processes all the requests in one transaction. A txn request increases the revision of the store, and generates events with the same revision in the event history. It is not allowed to modify the same key several times within one txn. |
46
+
| Compact |`CompactionRequest`|`CompactionResponse`| Compact compacts the event history in etcd. User should compact the event history periodically, or it will grow infinitely. |
47
+
48
+
49
+
<br>
50
+
51
+
##### service `Lease`
52
+
53
+
| Method | Request Type | Response Type | Description |
| LeaseGrant |`LeaseGrantRequest`|`LeaseGrantResponse`| LeaseGrant creates a lease. A lease has a TTL. The lease will expire if the server does not receive a keepAlive within TTL from the lease holder. All keys attached to the lease will be expired and deleted if the lease expires. The key expiration generates an event in event history. |
56
+
| LeaseRevoke |`LeaseRevokeRequest`|`LeaseRevokeResponse`| LeaseRevoke revokes a lease. All the key attached to the lease will be expired and deleted. |
57
+
| LeaseKeepAlive |`LeaseKeepAliveRequest`|`LeaseKeepAliveResponse`| KeepAlive keeps the lease alive. |
58
+
59
+
60
+
<br>
61
+
62
+
##### service `Maintenance`
63
+
64
+
| Method | Request Type | Response Type | Description |
| Hash |`HashRequest`|`HashResponse`| Hash returns the hash of the local KV state for consistency checking purpose. This is designed for testing; do not use this in production when there are ongoing transactions. |
70
+
| Snapshot |`SnapshotRequest`|`SnapshotResponse`| Snapshot sends a snapshot of the entire backend |
71
+
72
+
73
+
<br>
74
+
75
+
##### service `Watch`
76
+
77
+
| Method | Request Type | Response Type | Description |
| Watch |`WatchRequest`|`WatchResponse`| Watch watches the events happening or happened. Both input and output are stream. One watch rpc can watch for multiple keys or prefixs and get a stream of events. The whole events history can be watched unless compacted. |
80
+
81
+
82
+
<br>
83
+
4
84
##### message `AlarmMember`
5
85
6
86
| Field | Description | Type | Go | Java | Python | C++ |
@@ -27,7 +107,7 @@
27
107
| Field | Description | Type | Go | Java | Python | C++ |
| clientURLs | If the member is not started, client_URLs will be an zero length string array. | slice of string |[]string |[]String |[]str/unicode |[]string |
| clientURLs | If the member is not started, client_URLs will be an zero length string array. |(slice of) string |(slice of) string |(slice of) String |(slice of) str/unicode |(slice of) string |
478
558
479
559
480
560
<br>
@@ -483,7 +563,7 @@ An InternalRaftRequest is the union of all requests which can be sent via raft.
483
563
484
564
| Field | Description | Type | Go | Java | Python | C++ |
@@ -776,87 +856,7 @@ If the comparisons succeed, then the success requests will be processed in order
776
856
| created | If the response is for a create watch request, created is set to true. Client should record the watch_id and prepare for receiving events for that watching from the same stream. All events sent to the created watching will attach with the same watch_id. | bool | bool | boolean | boolean | bool |
777
857
| canceled | If the response is for a cancel watch request, cancel is set to true. No further events will be sent to the canceled watching. | bool | bool | boolean | boolean | bool |
778
858
| compact_revision | CompactRevision is set to the minimum index if a watching tries to watch at a compacted index. This happens when creating a watching at a compacted revision or the watching cannot catch up with the progress of the KV. Client should treat the watching as canceled and should not try to create any watching with same start_revision again. | int64 | int64 | long | int/long | int64 |
779
-
| events || slice of storagepb.Event |||||
780
-
781
-
782
-
<br>
783
-
784
-
##### service `Auth`
785
-
786
-
| Method | Request Type | Response Type | Description |
| Range |`RangeRequest`|`RangeResponse`| Range gets the keys in the range from the store. |
823
-
| Put |`PutRequest`|`PutResponse`| Put puts the given key into the store. A put request increases the revision of the store, and generates one event in the event history. |
824
-
| DeleteRange |`DeleteRangeRequest`|`DeleteRangeResponse`| Delete deletes the given range from the store. A delete request increase the revision of the store, and generates one event in the event history. |
825
-
| Txn |`TxnRequest`|`TxnResponse`| Txn processes all the requests in one transaction. A txn request increases the revision of the store, and generates events with the same revision in the event history. It is not allowed to modify the same key several times within one txn. |
826
-
| Compact |`CompactionRequest`|`CompactionResponse`| Compact compacts the event history in etcd. User should compact the event history periodically, or it will grow infinitely. |
827
-
828
-
829
-
<br>
830
-
831
-
##### service `Lease`
832
-
833
-
| Method | Request Type | Response Type | Description |
| LeaseGrant |`LeaseGrantRequest`|`LeaseGrantResponse`| LeaseGrant creates a lease. A lease has a TTL. The lease will expire if the server does not receive a keepAlive within TTL from the lease holder. All keys attached to the lease will be expired and deleted if the lease expires. The key expiration generates an event in event history. |
836
-
| LeaseRevoke |`LeaseRevokeRequest`|`LeaseRevokeResponse`| LeaseRevoke revokes a lease. All the key attached to the lease will be expired and deleted. |
837
-
| LeaseKeepAlive |`LeaseKeepAliveRequest`|`LeaseKeepAliveResponse`| KeepAlive keeps the lease alive. |
838
-
839
-
840
-
<br>
841
-
842
-
##### service `Maintenance`
843
-
844
-
| Method | Request Type | Response Type | Description |
| Hash |`HashRequest`|`HashResponse`| Hash returns the hash of the local KV state for consistency checking purpose. This is designed for testing; do not use this in production when there are ongoing transactions. |
850
-
| Snapshot |`SnapshotRequest`|`SnapshotResponse`| Snapshot sends a snapshot of the entire backend |
851
-
852
-
853
-
<br>
854
-
855
-
##### service `Watch`
856
-
857
-
| Method | Request Type | Response Type | Description |
| Watch |`WatchRequest`|`WatchResponse`| Watch watches the events happening or happened. Both input and output are stream. One watch rpc can watch for multiple keys or prefixs and get a stream of events. The whole events history can be watched unless compacted. |
0 commit comments