Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbManager ¶
type DbManager interface { NewTransaction() Transaction NewPricesTransaction() Transaction NewUnspentsTransaction() Transaction RunTransaction( ctx context.Context, readOnly bool, handler func(ctx context.Context) (interface{}, error), ) (interface{}, error) RunUnspentsTransaction( ctx context.Context, readOnly bool, handler func(ctx context.Context) (interface{}, error), ) (interface{}, error) RunPricesTransaction( ctx context.Context, readOnly bool, handler func(ctx context.Context) (interface{}, error), ) (interface{}, error) }
DbManager interface defines the methods for swap, price and unspent.
type Transaction ¶
type Transaction interface { Commit() error Discard() }
Transaction interface defines the method to commit or discard a database transaction.
Click to show internal directories.
Click to hide internal directories.