Fixes README.md.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
This commit is contained in:
parent
842372d86d
commit
7aa851420c
|
|
@ -2,3 +2,4 @@ build/
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
proto/**/*.pb.cc
|
proto/**/*.pb.cc
|
||||||
proto/**/*.pb.h
|
proto/**/*.pb.h
|
||||||
|
default.etcd/
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,7 @@ arguments when launching etcd server).
|
||||||
Or the etcd client can be constructed explictly:
|
Or the etcd client can be constructed explictly:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
etcd::Client *etcd = etcd::Client::WithUser(
|
etcd::Client *etcd = etcd::Client::WithSSL(
|
||||||
"https://127.0.0.1:2379",
|
"https://127.0.0.1:2379",
|
||||||
"example.rootca.cert", "example.cert", "example.key");
|
"example.rootca.cert", "example.cert", "example.key");
|
||||||
```
|
```
|
||||||
|
|
@ -224,7 +224,7 @@ Or the etcd client can be constructed explictly:
|
||||||
Using secure transport but not certificated-based client authentication:
|
Using secure transport but not certificated-based client authentication:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
etcd::Client *etcd = etcd::Client::WithUser(
|
etcd::Client *etcd = etcd::Client::WithSSL(
|
||||||
"https://127.0.0.1:2379", "example.rootca.cert");
|
"https://127.0.0.1:2379", "example.rootca.cert");
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue