package
0.0.0-20201115164506-4b7be03191e8
Repository: https://github.com/aiblocks/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 CaptiveAiBlocksCore.
No description provided by the author
No description provided by the author
NewHistoryArchiveBackendFromArchive builds a new HistoryArchiveBackend using historyarchive.Archive.
NewHistoryArchiveBackendFromURL builds a new HistoryArchiveBackend using history archive URL.
NewRemoteCaptive returns a new RemoteCaptiveAiBlocksCore 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

CaptiveAiBlocksCore is a ledger backend that starts internal AiBlocks-Core subprocess responsible for streaming ledger data.
DatabaseBackend implements a database data store.
HistoryArchiveBackend is using history archives to get ledger data.
LatestLedgerSequenceResponse is the response for the GetLatestLedgerSequence command.
LedgerResponse is the response for the GetLedger command.
No description provided by the author
PrepareRangeResponse describes the status of the pending PrepareRange operation.
Range represents a range of ledger sequence numbers.
RemoteCaptiveAiBlocksCore is an http client for interacting with a remote captive core server.

# Interfaces

LedgerBackend represents the interface to a ledger data store.

# Type aliases

Base64Ledger extends xdr.LedgerCloseMeta with JSON encoding and decoding.
RemoteCaptiveOption values can be passed into NewRemoteCaptive to customize a RemoteCaptiveAiBlocksCore instance.