Versions in this module Expand all Collapse all v0 v0.1.0 Jan 28, 2021 Changes in this version + const LastLedgerHeaderName + const ParamCursor + const ParamLimit + const ParamOrder + var DestinationAssetsOrDestinationAccountProblem = problem.P + var SourceAssetsOrSourceAccountProblem = problem.P + func AccountInfo(ctx context.Context, hq *history.Q, addr string) (*protocol.Account, error) + func FullURL(ctx context.Context) *url.URL + func GetPageQuery(ledgerState *ledger.State, r *http.Request, opts ...Opt) (db2.PageQuery, error) + func GetTransactionID(r *http.Request, name string) (string, error) + func SetLastLedgerHeader(w HeaderWriter, lastLedger uint32) + type Account protocol.Account + func (a Account) Equals(other StreamableObjectResponse) bool + type AccountByIDQuery struct + AccountID string + type AccountDataQuery struct + AccountID string + Key string + type AccountOffersQuery struct + AccountID string + type AccountsQuery struct + AssetFilter string + Signer string + Sponsor string + func (q AccountsQuery) Asset() *xdr.Asset + func (q AccountsQuery) URITemplate() string + func (q AccountsQuery) Validate() error + type AssetStatsHandler struct + LedgerState *ledger.State + func (handler AssetStatsHandler) GetResourcePage(w HeaderWriter, r *http.Request) ([]hal.Pageable, error) + type ClaimableBalanceQuery struct + ID string + func (q ClaimableBalanceQuery) BalanceID() (xdr.ClaimableBalanceId, error) + func (q ClaimableBalanceQuery) Validate() error + type ClaimableBalancesQuery struct + AssetFilter string + ClaimantFilter string + SponsorFilter string + func (q ClaimableBalancesQuery) URITemplate() string + type CoreSettings struct + CoreSupportedProtocolVersion int32 + CoreVersion string + CurrentProtocolVersion int32 + type CoreSettingsGetter interface + GetCoreSettings func() CoreSettings + type EffectsQuery struct + AccountID string + LedgerID uint32 + OperationID uint64 + TxHash string + func (qp EffectsQuery) Validate() error + type FeeStatsHandler struct + func (handler FeeStatsHandler) GetResource(w HeaderWriter, r *http.Request) (interface{}, error) + type FindFixedPathsHandler struct + MaxAssetsParamLength int + MaxPathLength uint + PathFinder paths.Finder + SetLastLedgerHeader bool + func (handler FindFixedPathsHandler) GetResource(w HeaderWriter, r *http.Request) (interface{}, error) + type FindFixedPathsQuery struct + DestinationAccount string + DestinationAssets string + SourceAmount string + SourceAssetCode string + SourceAssetIssuer string + SourceAssetType string + func (q FindFixedPathsQuery) Amount() xdr.Int64 + func (q FindFixedPathsQuery) Assets() ([]xdr.Asset, error) + func (q FindFixedPathsQuery) SourceAsset() xdr.Asset + func (q FindFixedPathsQuery) URITemplate() string + func (q FindFixedPathsQuery) Validate() error + type FindPathsHandler struct + MaxAssetsParamLength int + MaxPathLength uint + PathFinder paths.Finder + SetLastLedgerHeader bool + StaleThreshold uint + func (handler FindPathsHandler) GetResource(w HeaderWriter, r *http.Request) (interface{}, error) + type GetAccountByIDHandler struct + func (handler GetAccountByIDHandler) GetResource(w HeaderWriter, r *http.Request) (StreamableObjectResponse, error) + type GetAccountDataHandler struct + func (handler GetAccountDataHandler) GetResource(w HeaderWriter, r *http.Request) (StreamableObjectResponse, error) + func (handler GetAccountDataHandler) WriteRawResponse(w io.Writer, r *http.Request) error + type GetAccountOffersHandler struct + LedgerState *ledger.State + func (handler GetAccountOffersHandler) GetResourcePage(w HeaderWriter, r *http.Request) ([]hal.Pageable, error) + type GetAccountsHandler struct + LedgerState *ledger.State + func (handler GetAccountsHandler) GetResourcePage(w HeaderWriter, r *http.Request) ([]hal.Pageable, error) + type GetClaimableBalanceByIDHandler struct + func (handler GetClaimableBalanceByIDHandler) GetResource(w HeaderWriter, r *http.Request) (interface{}, error) + type GetClaimableBalancesHandler struct + LedgerState *ledger.State + func (handler GetClaimableBalancesHandler) GetResourcePage(w HeaderWriter, r *http.Request) ([]hal.Pageable, error) + type GetEffectsHandler struct + LedgerState *ledger.State + func (handler GetEffectsHandler) GetResourcePage(w HeaderWriter, r *http.Request) ([]hal.Pageable, error) + type GetLedgerByIDHandler struct + LedgerState *ledger.State + func (handler GetLedgerByIDHandler) GetResource(w HeaderWriter, r *http.Request) (interface{}, error) + type GetLedgersHandler struct + LedgerState *ledger.State + func (handler GetLedgersHandler) GetResourcePage(w HeaderWriter, r *http.Request) ([]hal.Pageable, error) + type GetOfferByID struct + func (handler GetOfferByID) GetResource(w HeaderWriter, r *http.Request) (interface{}, error) + type GetOffersHandler struct + LedgerState *ledger.State + func (handler GetOffersHandler) GetResourcePage(w HeaderWriter, r *http.Request) ([]hal.Pageable, error) + type GetOperationByIDHandler struct + LedgerState *ledger.State + func (handler GetOperationByIDHandler) GetResource(w HeaderWriter, r *http.Request) (interface{}, error) + type GetOperationsHandler struct + LedgerState *ledger.State + OnlyPayments bool + func (handler GetOperationsHandler) GetResourcePage(w HeaderWriter, r *http.Request) ([]hal.Pageable, error) + type GetOrderbookHandler struct + func (handler GetOrderbookHandler) GetResource(w HeaderWriter, r *http.Request) (StreamableObjectResponse, error) + type GetRootHandler struct + FriendbotURL *url.URL + HorizonVersion string + LedgerState *ledger.State + NetworkPassphrase string + func (handler GetRootHandler) GetResource(w HeaderWriter, r *http.Request) (interface{}, error) + type GetTradeAggregationsHandler struct + LedgerState *ledger.State + func (handler GetTradeAggregationsHandler) GetResource(w HeaderWriter, r *http.Request) (interface{}, error) + type GetTradesHandler struct + LedgerState *ledger.State + func (handler GetTradesHandler) GetResourcePage(w HeaderWriter, r *http.Request) ([]hal.Pageable, error) + type GetTransactionByHashHandler struct + func (handler GetTransactionByHashHandler) GetResource(w HeaderWriter, r *http.Request) (interface{}, error) + type GetTransactionsHandler struct + LedgerState *ledger.State + func (handler GetTransactionsHandler) GetResourcePage(w HeaderWriter, r *http.Request) ([]hal.Pageable, error) + type HeaderWriter interface + Header func() http.Header + type Joinable struct + Join string + func (qp Joinable) IncludeTransactions() bool + type LedgerByIDQuery struct + LedgerID uint32 + type OfferByIDQuery struct + OfferID uint64 + type OffersQuery struct + Seller string + Sponsor string + func (q OffersQuery) URITemplate() string + func (q OffersQuery) Validate() error + type OperationQuery struct + ID uint64 + LedgerState *ledger.State + func (qp OperationQuery) Validate() error + type OperationsQuery struct + AccountID string + IncludeFailedTransactions bool + LedgerID uint32 + TransactionHash string + func (qp OperationsQuery) Validate() error + type Opt int + const DisableCursorValidation + type OrderBookResponse struct + func (o OrderBookResponse) Equals(other StreamableObjectResponse) bool + type SellingBuyingAssetQueryParams struct + BuyingAsset string + BuyingAssetCode string + BuyingAssetIssuer string + BuyingAssetType string + SellingAsset string + SellingAssetCode string + SellingAssetIssuer string + SellingAssetType string + func (q SellingBuyingAssetQueryParams) Buying() (*xdr.Asset, error) + func (q SellingBuyingAssetQueryParams) Selling() (*xdr.Asset, error) + func (q SellingBuyingAssetQueryParams) Validate() error + type StreamableObjectResponse interface + Equals func(other StreamableObjectResponse) bool + type StrictReceivePathsQuery struct + DestinationAccount string + DestinationAmount string + DestinationAssetCode string + DestinationAssetIssuer string + DestinationAssetType string + SourceAccount string + SourceAssets string + func (q StrictReceivePathsQuery) Amount() xdr.Int64 + func (q StrictReceivePathsQuery) Assets() ([]xdr.Asset, error) + func (q StrictReceivePathsQuery) DestinationAsset() xdr.Asset + func (q StrictReceivePathsQuery) URITemplate() string + func (q StrictReceivePathsQuery) Validate() error + type SubmitTransactionHandler struct + NetworkPassphrase string + Submitter *txsub.System + func (handler SubmitTransactionHandler) GetResource(w HeaderWriter, r *http.Request) (interface{}, error) + type TradeAggregationsQuery struct + EndTimeFilter time.Millis + OffsetFilter uint64 + ResolutionFilter uint64 + StartTimeFilter time.Millis + func (q TradeAggregationsQuery) Validate() error + type TradeAssetsQueryParams struct + BaseAssetCode string + BaseAssetIssuer string + BaseAssetType string + CounterAssetCode string + CounterAssetIssuer string + CounterAssetType string + func (q TradeAssetsQueryParams) Base() (*xdr.Asset, error) + func (q TradeAssetsQueryParams) Counter() (*xdr.Asset, error) + type TradesQuery struct + AccountID string + OfferID uint64 + func (q TradesQuery) Validate() error + type TransactionQuery struct + TransactionHash string + type TransactionsQuery struct + AccountID string + IncludeFailedTransactions bool + LedgerID uint32 + func (qp TransactionsQuery) Validate() error + type Validateable interface + Validate func() error