ExESDB.Gateway (ex_esdb v0.0.9-alpha)
Provides API functions for working with ExESDB ## API
- append_events/4
- get_events/4
- get_streams/1
- add_subscription/4
- subscribe_to/5
- unsubscribe/2
- delete_subscription/4
Summary
Functions
Add a subscription.
Returns a specification to start this module under a supervisor.
Get all streams from the store. ## Parameters
Delete a subscription.
Types
Functions
add_subscription(store, type, selector, subscription_name \\ "transient", subscriber \\ nil, start_from \\ 0)
@spec add_subscription( store :: store(), type :: subscription_type(), selector :: selector_type(), subscription_name :: subscription_name(), subscriber :: pid() | nil, start_from :: integer() ) :: :ok | {:error, error()}
Add a subscription.
Returns a specification to start this module under a supervisor.
See Supervisor
.
Get all streams from the store. ## Parameters
- store: the id of the store
## Returns
- a list of all streams in the store
@spec remove_subscription( store :: any(), type :: subscription_type(), selector :: selector_type(), subscription_name :: subscription_name() ) :: :ok | {:error, error()}
Delete a subscription.