platform/updates/feed-state
Classes
Section titled “Classes”JsonFeedStateStore
Section titled “JsonFeedStateStore”Defined in: app/src/platform/updates/feed-state.ts:6
Keeps the highest feed sequence seen in a small JSON file in the profile.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new JsonFeedStateStore(
path):JsonFeedStateStore
Defined in: app/src/platform/updates/feed-state.ts:10
Parameters
Section titled “Parameters”string
The state file.
Returns
Section titled “Returns”Methods
Section titled “Methods”readSequence()
Section titled “readSequence()”readSequence():
number
Defined in: app/src/platform/updates/feed-state.ts:14
Returns the highest sequence seen so far, or 0.
Returns
Section titled “Returns”number
Implementation of
Section titled “Implementation of”writeSequence()
Section titled “writeSequence()”writeSequence(
sequence):void
Defined in: app/src/platform/updates/feed-state.ts:26
Stores a higher sequence.
Parameters
Section titled “Parameters”sequence
Section titled “sequence”number
Sequence of a verified index.
Returns
Section titled “Returns”void