Event store
EventStore
Bases: ClientBase
EventStore Client.
Source code in src/eventstore_grpc/client/event_store.py
__init__(hosts, discover=None, tls=None, keep_alive_interval=None, keep_alive_timeout=None, username=None, password=None, tls_ca_file=None)
Initializes a new EventStore Client.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hosts |
Union[str, list[str]]
|
either a single host url, or multiple ones, as a list. |
required |
discover |
Optional[bool]
|
whether or not to use discovery. |
None
|
tls |
Optional[bool]
|
whether or not to use tls encryption. |
None
|
keep_alive_interval |
Optional[int]
|
the number of seconds for the keep alive interval. |
None
|
keep_alive_timeout |
Optional[int]
|
the number of seconds for the keep alive timeout. |
None
|
username |
Optional[str]
|
the username. |
None
|
password |
Optional[str]
|
the password. |
None
|
tls_ca_file |
Optional[str]
|
the filepath to the certificate to use for tls encryption. |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
when something goes wrong with the values you passed. |