ExESDB.GatewayAPI (ex_esdb v0.0.10-alpha)
Provides API functions for working with ExESDB
Summary
Functions
Add a subscription.
Returns a specification to start this module under a supervisor.
Get all streams from the store. ## Parameters
Callback implementation for GenServer.init/1
.
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
Callback implementation for GenServer.init/1
.
@spec remove_subscription( store :: any(), type :: subscription_type(), selector :: selector_type(), subscription_name :: subscription_name() ) :: :ok | {:error, error()}
Delete a subscription.