runindex

package
v0.0.0-...-3bea39f Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: GPL-3.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 RunIndex

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

RunIndex manages the run frequency index using bbolt DB.

func NewRunIndex

func NewRunIndex() (*RunIndex, error)

NewRunIndex creates or opens the bbolt database for the run index.

func NewRunIndexWithCacheDir

func NewRunIndexWithCacheDir(cacheDir string) (*RunIndex, error)

NewRunIndexWithCacheDir creates or opens the bbolt database for the run index with a specific cache directory. This is primarily for testing purposes.

func (*RunIndex) Close

func (ri *RunIndex) Close() error

Close closes the database connection.

func (*RunIndex) GetFrequencies

func (ri *RunIndex) GetFrequencies(paths []string) map[string]uint64

GetFrequencies retrieves the run frequencies for a list of paths.

func (*RunIndex) Increment

func (ri *RunIndex) Increment(path string) error

Increment increases the run count for a given path.

Jump to

Keyboard shortcuts

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