photostore

package
v0.0.0-...-f1991a8 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsPhoto

func ContainsPhoto(pHash photo.PhotoHash, db *sql.DB) (contains bool, err error)

Types

type PhotoStore

type PhotoStore interface {
	NewPhoto(hash photo.PhotoHash, timeTaken time.Time, description string) (photo.Photo, error)
	GetPhotoByHash(pHash photo.PhotoHash) (photo.Photo, error)
	DeletePhoto(pHash photo.PhotoHash) error
}

func NewPhotoStore

func NewPhotoStore(db *sql.DB, fsRoot string) (pStore PhotoStore, err error)

Jump to

Keyboard shortcuts

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