Documentation ¶
Overview ¶
Package paths provides utilities and facilities for payment paths as needed by horizon. 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 DummyFinder ¶
type DummyFinder struct { }
type DummyPath ¶
type DummyPath struct {
// contains filtered or unexported fields
}
func (DummyPath) Destination ¶
type Path ¶
type Path interface { Path() []xdr.Asset Source() xdr.Asset Destination() xdr.Asset // Cost returns an amount (which may be estimated), delimited in the Source assets // that is suitable for use as the `sendMax` field for a `PathPaymentOp` struct. Cost(amount xdr.Int64) (xdr.Int64, error) }
Path is the interface that represents a single result returned by a path finder.
Click to show internal directories.
Click to hide internal directories.