datastorehandlers

package
v0.0.59 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuzzyFinder

type FuzzyFinder struct {
	// contains filtered or unexported fields
}

FuzzyFinder implements a range find, treating Entry Key Names as epoch values. Assumes Name is a epoch in Milliseconds.

func NewFuzzyFinder

func NewFuzzyFinder(client *datastore.Client, ancestorKind, kind string, maxDeltaMs int64, l *logging.Client) *FuzzyFinder

NewFuzzyFinder creates a new FuzzyFinder. Enforces a present logging.Client.

func (*FuzzyFinder) Close

func (f *FuzzyFinder) Close()

Close flushes potential logging messages

func (*FuzzyFinder) FindClosestToEpochMs

func (f *FuzzyFinder) FindClosestToEpochMs(ctx context.Context, ancestorName string, epochMs int64) (*datastore.Key, error)

Jump to

Keyboard shortcuts

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