GitHub

StoreMappingService

API reference for StoreMappingService.

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.

ParameterTypeDescription
public_keystr
store_idStoreId

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.

ParameterTypeDescription
public_keystr
store_idStoreId

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."""