storage

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationSettings *util.Settings

Reference here, so main can give it. Will prevent circular dependances.

View Source
var Databasefiles embed.FS

Functions

func ImportLegacyCsv

func ImportLegacyCsv(filepath string)

Import the legacy CSV from V0.1 into the new database storage format.

func SaveMultipleToDb

func SaveMultipleToDb(timeBrowserInfoMap *[]TimedBrowserInfo) error

Save multiple info entries from different timestamps to the database from **1** browser per entry.

func SaveToDb

func SaveToDb(browserInfoList []browser.BrowserInfo)

Save a single entry with multiple browsers to the database at the current timestamp.

Types

type TimedBrowserInfo

type TimedBrowserInfo struct {
	Timestamp   int64
	BrowserInfo browser.BrowserInfo
}

Jump to

Keyboard shortcuts

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