package
0.0.0-20230925091837-55f7a6b23beb
Repository: https://github.com/xdbfoundation/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 CaptiveDigitalBitsCore instance.
NewCaptiveCoreToml constructs a new CaptiveCoreToml instance based off the configuration in `params`.
NewCaptiveCoreTomlFromFile constructs a new CaptiveCoreToml instance by merging configuration from the toml file located at `configPath` and the configuration provided by `params`.
No description provided by the author
No description provided by the author
NewFrontierDBLedgerHashStore constructs a new TrustedLedgerHashStore backed by the frontier db.
NewRemoteCaptive returns a new RemoteCaptiveDigitalBitsCore 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 CaptiveDigitalBitsCore instance.
CaptiveCoreToml represents a parsed captive core configuration.
CaptiveCoreTomlParams defines captive core configuration provided by Frontier flags.
CaptiveDigitalBitsCore is a ledger backend that starts internal DigitalBits-Core subprocess responsible for streaming ledger data.
DatabaseBackend implements a database data store.
FrontierDBLedgerHashStore is a TrustedLedgerHashStore which uses frontier's db to look up ledger hashes.
History represents a [HISTORY] table in the captive core toml file.
HomeDomain represents a [[HOME_DOMAINS]] entry in the captive core toml file.
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.
QuorumSet represents a [QUORUM_SET] table in the captive core toml file.
Range represents a range of ledger sequence numbers.
RemoteCaptiveDigitalBitsCore is an http client for interacting with a remote captive core server.
Validator represents a [[VALIDATORS]] entry in the captive core toml file.

# 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 RemoteCaptiveDigitalBitsCore instance.