Skip to content

Commit e78000e

Browse files
authored
Merge pull request kragniz#1596 from InvalidInterrupt/reconnections
Add support for multiple endpoints and failover
2 parents 8ae4f2a + 7acec26 commit e78000e

File tree

7 files changed

+470
-122
lines changed

7 files changed

+470
-122
lines changed

AUTHORS.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ Development Lead
1010
Contributors
1111
------------
1212

13-
None yet. Why not be the first?
13+
* Giuseppe Lavagetto <glavagetto@wikimedia.org>
14+
* InvalidInterrupt <invalidinterrupt@users.noreply.github.com>

docs/usage.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,15 @@ You can check this has been stored correctly by testing with etcdctl:
4949
API
5050
===
5151

52+
.. autoclass:: etcd3.MultiEndpointEtcd3Client
53+
:members:
54+
5255
.. autoclass:: etcd3.Etcd3Client
5356
:members:
5457

58+
.. autoclass:: etcd3.Endpoint
59+
:members:
60+
5561
.. autoclass:: etcd3.Member
5662
:members:
5763

etcd3/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from __future__ import absolute_import
22

33
import etcd3.etcdrpc as etcdrpc
4+
from etcd3.client import Endpoint
45
from etcd3.client import Etcd3Client
6+
from etcd3.client import MultiEndpointEtcd3Client
57
from etcd3.client import Transactions
68
from etcd3.client import client
79
from etcd3.exceptions import Etcd3Exception
@@ -15,11 +17,13 @@
1517

1618
__all__ = (
1719
'etcdrpc',
20+
'Endpoint',
1821
'Etcd3Client',
1922
'Etcd3Exception',
2023
'Transactions',
2124
'client',
2225
'Lease',
2326
'Lock',
2427
'Member',
28+
'MultiEndpointEtcd3Client'
2529
)

0 commit comments

Comments
 (0)