discovery

package
v0.0.0-...-e89a0ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCursorFromTS

func BuildCursorFromTS(ctx context.Context,
	since models.Timestamp,
	uploader archive.Uploader,
	mongoClient client.MongoDriver) (oplogCursor client.OplogCursor, fromTS models.Timestamp, err error)

BuildCursorFromTS finds point to resume archiving or _restarts_ procedure from newest oplog document

func ResolveStartingTS

func ResolveStartingTS(ctx context.Context,
	downloader archive.Downloader,
	mongoClient client.MongoDriver) (models.Timestamp, error)

ResolveStartingTS fetches last-known folder TS or initiates first run from last-known mongoClient TS

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL