Versions in this module Expand all Collapse all v0 v0.0.1 Nov 25, 2022 Changes in this version + type CoreStatus struct + CoreLatest int32 + 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 HorizonStatus struct + ExpHistoryLatest uint32 + HistoryElder int32 + HistoryLatest int32 + HistoryLatestClosedAt time.Time + type Source interface + Close func() + CurrentLedger func() uint32 + NextLedger func(currentSequence uint32) chan uint32 + type State struct + Metrics struct{ ... } + func (c *State) CurrentStatus() Status + func (c *State) RegisterMetrics(registry *prometheus.Registry) + func (c *State) SetCoreStatus(next CoreStatus) + func (c *State) SetHorizonStatus(next HorizonStatus) + func (c *State) SetStatus(next Status) + type Status struct + 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