Commit Graph

42 Commits

Author SHA1 Message Date
Tao He e771d2f6da
Drop the boost dependency on the sync runtime (#216)
Signed-off-by: Tao He <sighingnow@gmail.com>
2023-04-28 20:38:13 +08:00
Tao He c72e072f77
Add an option `BUILD_ETCD_CORE_ONLY=ON/OFF` to select the runtime (#208)
Signed-off-by: Tao He <sighingnow@gmail.com>
2023-03-19 11:31:57 +08:00
Tao He 817153bcc9
Improve the cmake script for better compatibility (#195)
Signed-off-by: Tao He <sighingnow@gmail.com>
2023-02-19 11:14:05 +08:00
Rui Chen 5c7e155c9e
Add an cmake option which respect `CMAKE_CXX_STANDARD` for cxx standard. (#188) 2023-02-01 11:51:38 +08:00
Tao He ed7ab08ef7 Limit C++ flags to this library itself.
Resolves #159.

Signed-off-by: Tao He <sighingnow@gmail.com>
2022-09-20 20:11:10 +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 6a0b6696e5 Fixes the hardcode language standard in CMakeLists.txt.
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-12-22 10:16:38 +08:00
Tao He c927b395cb Set DESTINATION for older versions of CMake.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2021-03-01 18:11:23 +08:00
Tao He d2e35ceb47
Reduce the dependency interface to avoid include all generated protobuf/grpc files. (#41)
Add CMake config files to make it looks as a cmake module.

Fixes https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3/issues/37.

Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2021-02-06 17:16:58 +08:00
Tao He f2d8330b08 Fixes when cpprestsdk is a submodule of external project.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-12-21 16:19:24 +08:00
Tao He 7e280ec8a4 Install dll to bin/ on windows.
Signed-off-by: Tao He <sighingnow@gmail.com>
2020-12-20 14:54:25 +08:00
Tao He e286c36926 Fixes for windows (vcpkg environment) compatibility.
Signed-off-by: Tao He <sighingnow@gmail.com>
2020-12-20 00:19:47 +08:00
Tao He f7e7ec30fe Fixes CMakeLists.txt for header installation.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-10-25 00:22:29 +08:00
Tao He 525a279a18 Install target etcd-cpp-api where it is defined.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-10-24 22:48:31 +08:00
Tao He dd1f106150 Make "CancelWatch()" thread-safe and happen only once, fixes the potential assert failure in gRPC routines.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-10-15 19:56:23 +08:00
Tao He 611ab05de0 Move generated protobuf files to binary directory.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-09-30 00:32:00 +08:00
Tao He bb33b76544 Optimize protobuf generation process in CMakeLists.txt.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-09-30 00:32:00 +08:00
Tao He 72b215a513 Re-org v3 related files to make it a submodule. 2020-09-30 00:32:00 +08:00
Tao He 4e9d17c188 Update protobuf, implments lock, fixes watch and improves txn (#1) 2020-09-30 00:32:00 +08:00
arches 82034a87db Updated makefiles 2016-07-13 05:54:27 -04:00
arches 3c52636028 Implemented TTL and Lease 2016-07-13 05:09:42 -04:00
arches 6dfbe791a0 Added DeleteRangeResponse.
Refactor how value/values are filled up by parseResponse
2016-07-08 08:48:39 -04:00
arches 7d64447e76 Updates for Watcher 2016-07-05 05:22:11 -04:00
arches 174ea401b8 Added SyncClient class 2016-07-04 06:54:07 -04:00
arches a43de811f4 Refactor part1 2016-06-24 12:20:31 -04:00
arches 8ae3a250dd Remove AsyncPutResponse, utils and grpcClient 2016-06-21 10:58:24 -04:00
arches 63661d3889 Merge branch 'other_dev' of ssh://bud-git01.emea.nsn-net.net/etcd-cpp-apiv3 into other_dev
# Conflicts:
#	src/CMakeLists.txt
2016-06-21 09:38:50 -04:00
arches 40c552725b Merge branch 'other_dev' of ssh://bud-git01.emea.nsn-net.net/etcd-cpp-apiv3 into other_dev
# Conflicts:
#	src/CMakeLists.txt
#	src/Client.cpp
2016-06-21 09:34:22 -04:00
lampayan fe5396e437 Refactored Client class to remove boilerplate code.
Responsibility of boilerplate work is transfered to its own class 
(Transaction).
UT for watch are temporarily commented out as they are not supported yet
2016-06-21 15:33:11 +02:00
arches b9eb2633d1 Added watch functionality 2016-06-21 09:19:26 -04:00
lampayan 01bf49bf2d cleanup removing temporary classes AyncDelResponse AsyncModifyResponse
and V3BaseResponse
2016-06-21 10:54:13 +02:00
Arches 8825b43044 Use Txn 2016-06-16 06:25:33 -04:00
lampayan 64a7f72fb9 cleanup removing temporary classes. 2016-06-09 17:12:13 +02:00
lampayan c28d955b22 Complete implementation for modify with index and delete with index
functionalities. AsyncModifyResponse is needed because handling of
indeces are different between create and mod and delete, as per
requirements.

remaining TODOs:
1) Watch functionality
2016-06-09 16:57:25 +02:00
lampayan 008693a276 merged branches for ease of update later on.
cleaned up rm, implemented rm_if methods!
updated tests

remaining todos:
rm and modif with indexes (find out where is X-ETCD-Index)
watch functionality
2016-06-09 11:21:42 +02:00
lampayan 33be7c9092 Merge remote-tracking branch 'origin/maui' into other_dev
# Conflicts:
#	etcd/Client.hpp
#	etcd/Response.hpp
#	proto/rpc.proto
#	src/CMakeLists.txt
#	src/Client.cpp
#	src/Response.cpp
#	tst/EtcdTest.cpp
2016-06-08 14:53:34 +02:00
lampayan 62d4984e71 Refactored and cleaned implementation for rm()
Unrelated tests are commented out firsts
temporary method, such as getV3, are done to be able to do the original UT replication.
2016-06-08 11:11:50 +02:00
arches 04f8cc71e5 implemented assigned client interface 2016-06-07 10:59:10 -04:00
lampayan 66f9be45ba Crude DeleteV3, version 2 backward compatibility, implementation 2016-06-07 14:46:40 +02:00
arches b78da53aa3 Updated CMakeList to use protobuf and grpc++ libraries.
Updated client constructor to use gprc channels.
2016-06-01 04:50:42 -04:00
arches 3745c218fc Updated CMakeLists file so we can do compilation 2016-05-31 07:23:56 -04:00
Arches 7d11a0a4ca initial repository creation 2016-05-31 11:20:06 +02:00