Versions in this module Expand all Collapse all v2 v2.0.1 Jun 3, 2020 Changes in this version + func SetState(next State) + type HistoryDBSource struct + func NewHistoryDBSource(updateFrequency time.Duration) *HistoryDBSource + func (source *HistoryDBSource) Close() + func (source *HistoryDBSource) CurrentLedger() uint32 + func (source *HistoryDBSource) NextLedger(currentSequence uint32) chan uint32 + type Source interface + Close func() + CurrentLedger func() uint32 + NextLedger func(currentSequence uint32) chan uint32 + type State struct + CoreLatest int32 + ExpHistoryLatest uint32 + HistoryElder int32 + HistoryLatest int32 + func CurrentState() State + type TestingSource struct + func NewTestingSource(currentLedger uint32) *TestingSource + func (source *TestingSource) AddLedger(nextSequence uint32) + func (source *TestingSource) Close() + func (source *TestingSource) CurrentLedger() uint32 + func (source *TestingSource) NextLedger(currentSequence uint32) chan uint32