stldb

package
v0.0.0-...-0ac7fff Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package stldb handles storing instances in the speedtestlogger app to persistent storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddEntryRunner

type AddEntryRunner interface {

	// AddEntry adds a new entry to persistent storage.
	AddEntry(t db.Transaction, entry *stl.Entry) error
}

type EntriesRunner

type EntriesRunner interface {

	// Entries returns all entries (most recent to least recent) within a
	// given time range. startTime and endTime are seconds since Jan 1, 1970.
	Entries(
		t db.Transaction,
		startTime,
		endTime int64,
		consumer consume2.Consumer[stl.Entry]) error
}

type RemoveEntriesRunner

type RemoveEntriesRunner interface {

	// RemoveEntries removes entries within a given time range.
	// startTime and endTime are seconds since Jan 1, 1970.
	RemoveEntries(t db.Transaction, startTime, endTime int64) error
}

Directories

Path Synopsis
Package fixture provides test suites to test implementations of the datastore interfaces in the stldb package.
Package fixture provides test suites to test implementations of the datastore interfaces in the stldb package.
Package for_sqlite provides a sqlite implementation of interfaces in the stldb package.
Package for_sqlite provides a sqlite implementation of interfaces in the stldb package.
Package sqlite_setup sets up a sqlite database for the speedtestlogger app
Package sqlite_setup sets up a sqlite database for the speedtestlogger app

Jump to

Keyboard shortcuts

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