catalog

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package catalog stores disposable browsing metadata, never authentication files, full transcript bodies, or evidence used to authorize a transfer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New(dir string) *Store

func (*Store) Claim

func (s *Store) Claim(scope, owner string) bool

Claim coalesces browsing collectors across front ends. It is an OS file lock, not a database row: holding, renewing and releasing it writes nothing, and a crashed owner's lock is released with its process. A lock that cannot be taken for any reason other than another holder never blocks discovery.

func (*Store) Close

func (s *Store) Close() error

func (*Store) Invalidate

func (s *Store) Invalidate()

func (*Store) InvalidatePath

func (s *Store) InvalidatePath(path string)

func (*Store) Load

func (s *Store) Load(scope, path, signature string, dst any) bool

func (*Store) Read

func (s *Store) Read(scope string, dst any) bool

func (*Store) Release

func (s *Store) Release(scope, owner string)

func (*Store) Save

func (s *Store) Save(scope, path, signature string, value any)

func (*Store) Update

func (s *Store) Update(scope string, merge func([]byte) any)

Update serializes source merges across processes, avoiding lost updates when different front ends finish scans of different machines at the same time.

Jump to

Keyboard shortcuts

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