Skip to content

Commit

Permalink
Merge pull request #48 from kianmeng/fix-invalid-api-doc-link
Browse files Browse the repository at this point in the history
Fix invalid API doc link and remove trailing spaces
  • Loading branch information
zhongwencool authored Apr 10, 2022
2 parents e32e4da + 8273e9b commit 7e3f57b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Erlang client for the [etcd](https://github.com/etcd-io/etcd) API v3.
All core features are supported.
It includes reconnection, transaction, software transactional memory, high-level query builders and lease management, watchers.

See [the full API documentation](https://github.com/etcd-io/etcd/blob/master/Documentation/dev-guide/api_reference_v3.md) for more.
See [the full v3 API documentation](https://etcd.io/docs/) for more:

1. Adding, Fetching and Deleting Keys;
2. Transaction;
Expand Down Expand Up @@ -43,7 +43,7 @@ Firstly, open eetcd when your application starts.
-define(NAME, etcd_example_conn).

start(_StartType, _StartArgs) ->
Endpoints = ["127.0.0.1:2379", "127.0.0.1:2579", "127.0.0.1:2479"],
Endpoints = ["127.0.0.1:2379", "127.0.0.1:2579", "127.0.0.1:2479"],
{ok, _Pid} = eetcd:open(?NAME, Endpoints),
my_sup:start_link().

Expand All @@ -70,7 +70,7 @@ Ctx3 = eetcd_kv:with_ignore_value(Ctx2),
{ok,#{header :=
#{cluster_id := 11360555963653019356,
member_id := 16409577466894847729,raft_term := 5,
revision := 7}}}
revision := 7}}}
= eetcd_kv:put(Ctx3).

CtxNoExist = eetcd_kv:with_key(Ctx, <<"KeyNoExist">>),
Expand All @@ -79,7 +79,7 @@ Ctx6 = eetcd_kv:with_ignore_value(Ctx5),

{error,{grpc_error,#{'grpc-message' :=
<<"etcdserver: value is provided">>,
'grpc-status' := 3}}}
'grpc-status' := 3}}}
= eetcd_kv:put(Ctx6).

%% fetches
Expand Down Expand Up @@ -108,7 +108,7 @@ Ctx3 = eetcd_kv:with_sort(Ctx2, 'KEY', 'ASCEND'),
mod_revision := 7,value := <<"NewValue">>,version := 1}
%% ....
], more := false}}
= eetcd_kv:get(Ctx3).
= eetcd_kv:get(Ctx3).

%% deletes
{ok,#{deleted := 1,
Expand Down Expand Up @@ -140,7 +140,7 @@ Ctx2 = eetcd_kv:with_prefix(Ctx1),
header := #{revision := Revision},
kvs :=
[#{ mod_revision := ModRev,value := Value}],
more := false}}
more := false}}
= eetcd_kv:get(?NAME, Kv1),

Cmp = eetcd_compare:new(Kv1),
Expand Down Expand Up @@ -288,6 +288,4 @@ Gen proto and client file
-----
```erlang
rebar3 etcd gen
```


```

0 comments on commit 7e3f57b

Please sign in to comment.