Tao He
4ad9bbae0a
Get and list keys with specified revision.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2023-04-26 20:47:46 +08:00
Tao He
fb41073a90
Reliable macro condition to adapt to different version of gRPC. ( #187 )
2023-01-31 12:52:19 +08:00
Tao He
10f3435c28
Enable keys() to list elements without fetching values from server ( #184 )
...
* Enable keys() to list elements without fetching values from server
* Add concurrency control and cancel to CI workflows
Signed-off-by: Tao He <sighingnow@gmail.com>
2023-01-10 15:00:34 +08:00
Tao He
9f09066b47
Fixes the timeout parameter and some improvements to find non-standard installed deps. ( #178 )
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-10-17 13:18:36 +08:00
Tao He
1fb5abac28
Implements the "etcdctl lease list" functionality ( #174 )
...
* Implements the "etcdctl lease list" functionalities.
* LeaseLeases requires etcd >= 3.3
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-10-13 00:04:18 +08:00
Tao He
ab255467d0
Taking error code from grpc. ( #172 )
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-10-09 10:25:50 +08:00
Tao He
89ae8a5ee4
Define "NOMINMAX" to ensure `<limits>` works.
...
See also: https://stackoverflow.com/questions/2561368/illegal-token-on-right-side-of
Resolves #149 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-08-17 11:34:28 +08:00
Tao He
ca2553e30d
Enable C++11 when testing grpc features. ( #146 )
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-07-31 16:58:53 +08:00
Tao He
2ed6cacce9
Add more variants for etcd::Watcher's constructor. ( #144 )
...
* Add more variants for etcd::Watcher's constructor.
* Use ASAN for testing on CI.
* Revert "Use ASAN for testing on CI."
This reverts commit 6ccc2161da .
2022-07-19 20:42:44 +08:00
Tao He
2437a08e72
No timeout for leaserevoke.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-05-23 15:13:47 +08:00
Tao He
e5f1167c69
Implements the timeout feature to the etcd client.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-05-22 22:57:38 +08:00
Tao He
8da8946409
Refactor the implementation of sync-client and async-client.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-05-22 21:42:06 +08:00
Tao He
345380a83a
Allow specifying the auth token TTL when auth with password. ( #109 )
...
* Allow specifying the auth token TTL when auth with password.
* Fixes.
Resolves #107 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-12-22 14:30:45 +08:00
Tao He
405383c0ba
Add a new API to `client.observe()` that accepts a callback.
...
Resolves #108 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-12-22 10:30:46 +08:00
Matthew Fioravante
1118222b3d
Make revision numbers 64 bit to match proto spec ( #96 )
...
* Make Response::index() 64 bit
* make compact_revision 64 bit
* Make input revision params 64 bit
* make Transaction mod revision 64 bit
* Make Value created and modified index 64 bit
* Fix tests
2021-10-27 10:51:49 +08:00
Tao He
d29e05545d
Implements the put action.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-10-12 10:17:25 +08:00
Tao He
cda80854eb
Implements "v3election.proto" APIs. ( #84 )
...
Resolves #81 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-09-16 00:46:21 +08:00
Tao He
efcecb7731
Add a "head" method on the client the retrieve the latest revision.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-06-16 17:10:32 +08:00
Tao He
1b24751b9d
List/delete/watch on exact range. ( #51 )
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-04-01 14:50:50 +08:00
Tao He
6962030db8
Implements "KeepAlive" feature, and enhance "lock" with a lease.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-01-10 23:39:50 +08:00
Tao He
eb284103e0
Auto and watch functionalities on SyncClient.
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-10-10 20:17:32 +08:00
arches
888946b589
Added new interface for leasegrant and leaseId in add, set, modify, modify_if
2016-07-13 07:56:43 -04:00
arches
ac54e84f6d
Use ttl
2016-07-13 07:20:15 -04:00
arches
174ea401b8
Added SyncClient class
2016-07-04 06:54:07 -04:00