package
0.0.0-20240610110821-095633c8b6be
Repository: https://github.com/shantanu-hashcash/go.git
Documentation: pkg.go.dev

# Functions

BoundedRange constructs a bounded range of ledgers with a fixed starting ledger and ending ledger.
NewAuroraDBLedgerHashStore constructs a new TrustedLedgerHashStore backed by the aurora db.
NewBufferedStorageBackend returns a new BufferedStorageBackend instance.
NewCaptive returns a new CaptiveHcnetCore 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`.
No description provided by the author
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.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# 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

AuroraDBLedgerHashStore is a TrustedLedgerHashStore which uses aurora's db to look up ledger hashes.
BufferedStorageBackend is a ledger backend that reads from a storage service.
No description provided by the author
CaptiveCoreConfig contains all the parameters required to create a CaptiveHcnetCore instance.
CaptiveCoreToml represents a parsed captive core configuration.
CaptiveCoreTomlParams defines captive core configuration provided by Aurora flags.
CaptiveHcnetCore is a ledger backend that starts internal Hcnet-Core subprocess responsible for streaming ledger data.
History represents a [HISTORY] table in the captive core toml file.
No description provided by the author
HomeDomain represents a [[HOME_DOMAINS]] entry in the captive core toml file.
No description provided by the author
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.