Documentation ¶
Overview ¶
Package paths provides utilities and facilities for payment paths as needed by aurora. Most importantly, it provides the Finder interface, allowing for pluggable path finding back ends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finder ¶
type Finder interface { // Returns path for a Query of a maximum length `maxLength` Find(q Query, maxLength uint) ([]Path, error) // FindFixedPaths return a list of payment paths each of which // start by spending `amountToSpend` of `sourceAsset` and end // with delivering a postive amount of `destinationAsset` FindFixedPaths( sourceAccount *xdr.AccountId, sourceAsset xdr.Asset, amountToSpend xdr.Int64, destinationAsset xdr.Asset, maxLength uint, ) ([]Path, error) }
Finder finds paths.
Click to show internal directories.
Click to hide internal directories.