Versions in this module Expand all Collapse all v0 v0.1.0 Jan 28, 2021 Changes in this version + type HistoryDBSource struct + func NewHistoryDBSource(updateFrequency time.Duration, state *State) *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 + func (c *State) CurrentStatus() Status + func (c *State) SetStatus(next Status) + type Status struct + CoreLatest int32 + ExpHistoryLatest uint32 + HistoryElder int32 + HistoryLatest int32 + HistoryLatestClosedAt time.Time + 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