package
0.0.0-20250213232608-c453f8b35c75
Repository: https://github.com/stellar/go.git
Documentation: pkg.go.dev
# Functions
MakeArchiveBucketCache creates a cache on the disk at the given path that acts as an LRU cache, mimicking a particular upstream.
Mirror mirrors an archive, it assumes that the source and destination have the same checkpoint ledger frequency.
NewArchivePool tries connecting to each of the provided history archive URLs, returning a pool of valid archives.
NewCheckpointManager creates a CheckpointManager based on a checkpoint frequency (the number of ledgers between ledger checkpoints).
Returns an array of path prefixes to walk to enumerate all the objects in the provided range.
Repair repairs a destination archive based on a source archive, it assumes that the source and destination have the same checkpoint ledger frequency.
# Structs
An ArchivePool is just a collection of `ArchiveInterface`s so that we can distribute requests fairly throughout the pool.
FailingMockArchiveBackend is a mocking backend that will fail only when you try to read but otherwise behave like MockArchiveBackend.
MockArchive is a mockable archive.