store

package
v0.0.0-...-769d336 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	ShareDir string
	CacheDir string
	// contains filtered or unexported fields
}

func New

func New() (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) Hash

func (s *Store) Hash(path string, modTime time.Time) string

func (*Store) Lookup

func (s *Store) Lookup(hash string) (model.Photo, bool, error)

func (*Store) Upsert

func (s *Store) Upsert(p model.Photo) error

func (*Store) UpsertMany

func (s *Store) UpsertMany(photos []model.Photo) error

Jump to

Keyboard shortcuts

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