package
0.0.0-20210414020239-6daa909df9a7
Repository: https://github.com/kingaj12/go.git
Documentation: pkg.go.dev
# Functions
BoundedRange constructs a bounded range of ledgers with a fixed starting ledger and ending ledger.
NewCaptive returns a new CaptiveStellarCore instance.
No description provided by the author
No description provided by the author
NewHorizonDBLedgerHashStore constructs a new TrustedLedgerHashStore backed by the horizon db.
NewRemoteCaptive returns a new RemoteCaptiveStellarCore instance.
PrepareRangePollInterval configures how often the captive core server will be polled when blocking on the PrepareRange operation.
SingleLedgerRange constructs a bounded range containing a single ledger.
BoundedRange constructs a unbounded range of ledgers with a fixed starting ledger.
# Structs
CaptiveCoreConfig contains all the parameters required to create a CaptiveStellarCore instance.
CaptiveStellarCore is a ledger backend that starts internal Stellar-Core subprocess responsible for streaming ledger data.
DatabaseBackend implements a database data store.
HorizonDBLedgerHashStore is a TrustedLedgerHashStore which uses horizon's db to look up ledger hashes.
LatestLedgerSequenceResponse is the response for the GetLatestLedgerSequence command.
LedgerResponse is the response for the GetLedger command.
No description provided by the author
MockLedgerHashStore is a mock implementation of TrustedLedgerHashStore.
PrepareRangeResponse describes the status of the pending PrepareRange operation.
Range represents a range of ledger sequence numbers.
RemoteCaptiveStellarCore is an http client for interacting with a remote captive core server.
# Interfaces
LedgerBackend represents the interface to a ledger data store.
TrustedLedgerHashStore is used to query ledger data from a trusted source.
# Type aliases
Base64Ledger extends xdr.LedgerCloseMeta with JSON encoding and decoding.
RemoteCaptiveOption values can be passed into NewRemoteCaptive to customize a RemoteCaptiveStellarCore instance.