Versions in this module Expand all Collapse all v0 v0.0.1 Nov 25, 2022 Changes in this version + var ErrRateLimitExceeded = errors.New("Rate limit exceeded") + type Finder interface + Find func(ctx context.Context, q Query, maxLength uint) ([]Path, uint32, error) + FindFixedPaths func(ctx context.Context, sourceAsset xdr.Asset, amountToSpend xdr.Int64, ...) ([]Path, uint32, error) + type MockFinder struct + func (m *MockFinder) Find(ctx context.Context, q Query, maxLength uint) ([]Path, uint32, error) + func (m *MockFinder) FindFixedPaths(ctx context.Context, sourceAsset xdr.Asset, amountToSpend xdr.Int64, ...) ([]Path, uint32, error) + type Path struct + Destination string + DestinationAmount xdr.Int64 + Path []string + Source string + SourceAmount xdr.Int64 + type Query struct + DestinationAmount xdr.Int64 + DestinationAsset xdr.Asset + SourceAccount *xdr.AccountId + SourceAssetBalances []xdr.Int64 + SourceAssets []xdr.Asset + ValidateSourceBalance bool + type RateLimitedFinder struct + func NewRateLimitedFinder(finder Finder, limit uint) *RateLimitedFinder + func (f *RateLimitedFinder) Find(ctx context.Context, q Query, maxLength uint) ([]Path, uint32, error) + func (f *RateLimitedFinder) FindFixedPaths(ctx context.Context, sourceAsset xdr.Asset, amountToSpend xdr.Int64, ...) ([]Path, uint32, error) + func (f *RateLimitedFinder) Limit() int