Operate v0.1.0-beta.6 Operate.Adapter.OpApi View Source
Adapter module for loading Ops from the Operate API.
Examples
iex> Operate.Adapter.Hub.fetch_ops(refs)
{:ok, [%Operate.Op{}, ...]}
Link to this section Summary
Functions
Fetches a list of Ops by the given list of Op references. Returns the result
in an :ok
/ :error
tuple pair.
As c:fetch_ops/2
, but returns the result or raises an exception.
Fetches a transaction by the given txid, and returns the result in an
:ok
/ :error
tuple pair.
As c:fetch_tx/2
, but returns the transaction or raises an exception.
Fetches a list of transactions by the given query map, and returns the result
in an :ok
/ :error
tuple pair.
As c:fetch_tx_by/2
, but returns the result or raises an exception.
Link to this section Types
option()
View Sourceoption() :: {:method, Tesla.Env.method()} | {:url, Tesla.Env.url()} | {:query, Tesla.Env.query()} | {:headers, Tesla.Env.headers()} | {:body, Tesla.Env.body()} | {:opts, Tesla.Env.opts()}
Link to this section Functions
Fetches a list of Ops by the given list of Op references. Returns the result
in an :ok
/ :error
tuple pair.
Callback implementation for Operate.Adapter.fetch_ops/2
.
As c:fetch_ops/2
, but returns the result or raises an exception.
Callback implementation for Operate.Adapter.fetch_ops!/2
.
Fetches a transaction by the given txid, and returns the result in an
:ok
/ :error
tuple pair.
Callback implementation for Operate.Adapter.fetch_tx/2
.
As c:fetch_tx/2
, but returns the transaction or raises an exception.
Callback implementation for Operate.Adapter.fetch_tx!/2
.
Fetches a list of transactions by the given query map, and returns the result
in an :ok
/ :error
tuple pair.
Callback implementation for Operate.Adapter.fetch_tx_by/2
.
As c:fetch_tx_by/2
, but returns the result or raises an exception.
Callback implementation for Operate.Adapter.fetch_tx_by!/2
.