etcd-cpp-apiv3

C++ client library for etcd v3 API

brewmacoslinux
Try with needOr install directly
Source

About

C++ implementation for etcd's v3 client API, i.e., ETCDCTL_API=3

Commands

etcd-cpp-apiv3

Examples

Link etcd-cpp-apiv3 library in a C++ project$ g++ -o myapp myapp.cpp -letcd-cpp-apiv3 -lgrpc++ -lprotobuf
Include etcd client header in C++ source$ #include <etcd/Client.hpp>
Connect to etcd server and perform basic operations$ etcdcli::Client client("http://127.0.0.1:2379"); client.set("key", "value").get();