package
0.0.0-20250213232608-c453f8b35c75
Repository: https://github.com/stellar/go.git
Documentation: pkg.go.dev

# Functions

BoundedRange constructs a bounded range of ledgers with a fixed starting ledger and ending ledger.
CoreBuildVersion executes the "stellar-core version" command and parses its output to extract the core version The output of the "version" command is expected to be a multi-line string where the first line is the core version in format "vX.Y.Z-*".
CoreProtocolVersion retrieves the ledger protocol version from the specified stellar-core binary.
NewBufferedStorageBackend returns a new BufferedStorageBackend instance.
NewCaptive returns a new CaptiveStellarCore instance.
NewCaptiveCoreToml constructs a new CaptiveCoreToml instance based off the configuration in `params`.
NewCaptiveCoreTomlFromData constructs a new CaptiveCoreToml instance by merging configuration from the toml data and the configuration provided by `params`.
NewCaptiveCoreTomlFromFile constructs a new CaptiveCoreToml instance by merging configuration from the toml file located at `configPath` and the configuration provided by `params`.
NewHorizonDBLedgerHashStore constructs a new TrustedLedgerHashStore backed by the horizon db.
SingleLedgerRange constructs a bounded range containing a single ledger.
BoundedRange constructs a unbounded range of ledgers with a fixed starting ledger.
WithMetrics decorates the given LedgerBackend with metrics.

# Variables

ErrCannotStartFromGenesis is returned when attempting to prepare a range from ledger 1.
go:embed configs/captive-core-pubnet.cfg.
go:embed configs/captive-core-testnet.cfg.

# Structs

BufferedStorageBackend is a ledger backend that reads from a storage service.
CaptiveCoreConfig contains all the parameters required to create a CaptiveStellarCore instance.
CaptiveCoreToml represents a parsed captive core configuration.
CaptiveCoreTomlParams defines captive core configuration provided by Horizon flags.
CaptiveStellarCore is a ledger backend that starts internal Stellar-Core subprocess responsible for streaming ledger data.
History represents a [HISTORY] table in the captive core toml file.
HomeDomain represents a [[HOME_DOMAINS]] entry in the captive core toml file.
HorizonDBLedgerHashStore is a TrustedLedgerHashStore which uses horizon's db to look up ledger hashes.
MockLedgerHashStore is a mock implementation of TrustedLedgerHashStore.
QuorumSet represents a [QUORUM_SET] table in the captive core toml file.
Range represents a range of ledger sequence numbers.
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