ingestadapters

package
v0.0.0-...-bd458c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoryArchiveAdapter

type HistoryArchiveAdapter struct {
	// contains filtered or unexported fields
}

HistoryArchiveAdapter is an adapter for the historyarchive package to read from history archives

func MakeHistoryArchiveAdapter

func MakeHistoryArchiveAdapter(archive *historyarchive.Archive) *HistoryArchiveAdapter

MakeHistoryArchiveAdapter is a factory method to make a HistoryArchiveAdapter

func (*HistoryArchiveAdapter) GetLatestLedgerSequence

func (haa *HistoryArchiveAdapter) GetLatestLedgerSequence() (uint32, error)

GetLatestLedgerSequence returns the latest ledger sequence or an error

func (*HistoryArchiveAdapter) GetLedger

func (haa *HistoryArchiveAdapter) GetLedger(sequence uint32) (io.ArchiveLedgerReader, error)

GetLedger gets a ledger transaction result at the provided sequence number

func (*HistoryArchiveAdapter) GetState

func (haa *HistoryArchiveAdapter) GetState(sequence uint32) (io.StateReadCloser, error)

GetState returns a reader with the state of the ledger at the provided sequence number

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL