Which store a public key's store id means.
Functions#
resolve#
resolve(*, public_key, store_id) -> Effect[StoreId, EventLogServerStoreError]The store the server keeps public_key's store_id in;
fails with EventLogServerStoreError (NotFound) when there
is none.
| Parameter | Type | Description |
|---|---|---|
public_key | str | |
store_id | StoreId |
Returns Effect[StoreId, EventLogServerStoreError]
@abstractmethod
def resolve(
self, *, public_key: str, store_id: StoreId
) -> Effect[StoreId, EventLogServerStoreError]:
"""The store the server keeps ``public_key``'s ``store_id`` in;
fails with ``EventLogServerStoreError`` (``NotFound``) when there
is none."""has_store#
has_store(*, public_key, store_id) -> Effect[bool, EventLogServerStoreError]Whether public_key's store_id maps to a store; fails
with EventLogServerStoreError when the mapping cannot be
read.
| Parameter | Type | Description |
|---|---|---|
public_key | str | |
store_id | StoreId |
Returns Effect[bool, EventLogServerStoreError]
@abstractmethod
def has_store(
self, *, public_key: str, store_id: StoreId
) -> Effect[bool, EventLogServerStoreError]:
"""Whether ``public_key``'s ``store_id`` maps to a store; fails
with ``EventLogServerStoreError`` when the mapping cannot be
read."""