Documentation
¶
Index ¶
- type CachedImage
- type DB
- func (db *DB) AddImageToBin(path string, destID int) error
- func (db *DB) AddImagesToBin(paths []string, destID int) error
- func (db *DB) Close()
- func (db *DB) GetImagePaths(binID int) ([]string, error)
- func (db *DB) GetLowestImageCount() (int, error)
- func (db *DB) GetPreview(path string) (image.Image, bool)
- func (db *DB) GetThumbnail(path string) (image.Image, bool)
- func (db *DB) RemoveImages(paths []string) error
- func (db *DB) SetImage(path string, imgData CachedImage) error
- func (db *DB) SetImages(images map[string]CachedImage) error
- func (db *DB) UpdateImages(paths []string, sourceID, destID int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AddImageToBin ¶
CopyImageToBin adds an image to a new bin without removing it from existing ones.
func (*DB) GetLowestImageCount ¶ added in v0.4.0
Returns the number of images in the smallest bin, excluding the "To Sort" (0) and "excluded" (-1) bins.
func (*DB) RemoveImages ¶ added in v0.4.0
RemoveImages deletes images from the database.
Click to show internal directories.
Click to hide internal directories.