Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/indexing/BaseEventIndexManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,23 @@ import {

// The following interfaces take their names and member names from seshat and the spec
/* eslint-disable camelcase */

/** A record of a place to resume crawling events in a given room. */
export interface ICrawlerCheckpoint {
/** The room to be indexed */
roomId: string;
token: string | null;

/** The pagination index to resume crawling from. */
token: string;

/**
* If `fullCrawl` is false (or absent) and we find that we have already indexed the events we find, then we stop crawling.
*
* If `fullCrawl` is true, then we keep going until we reach the end of the room history.
*/
fullCrawl?: boolean;

/** Whether we should crawl in the forward or backward direction. */
direction: Direction;
}

Expand Down
Loading
Loading