Documentation ¶
Index ¶
- func Clear(db sql.Executor) error
- func GetRequest(db sql.Executor, epoch types.EpochID) (time.Time, int64, int64, error)
- func SaveRequest(db sql.Executor, epoch types.EpochID, timestamp time.Time, ...) error
- func SaveSyncState(db sql.Executor, epoch types.EpochID, states EpochSyncState, max int) error
- type EpochSyncState
- type IDSyncState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequest ¶
func SaveRequest ¶
func SaveSyncState ¶
Types ¶
type EpochSyncState ¶ added in v1.7.0
type EpochSyncState = map[types.ATXID]*IDSyncState
func GetSyncState ¶
type IDSyncState ¶ added in v1.7.0
type IDSyncState struct { Tries int // contains filtered or unexported fields }
IDSyncState tracks how many times we tried to sync an ATX.
func (*IDSyncState) TriesPersisted ¶ added in v1.7.0
func (s *IDSyncState) TriesPersisted() bool
TriesPersisted returns true if the number of tries is equal to the number of persisted tries.
Click to show internal directories.
Click to hide internal directories.