mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 22:05:43 +01:00
* Don't load image files by default * Don't load gallery files by default * Don't load scene files by default * Retry locked transactions forever * Don't show release notes if config not loaded * Don't translate path slashes in export
24 lines
458 B
Go
24 lines
458 B
Go
package image
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/stashapp/stash/pkg/file"
|
|
"github.com/stashapp/stash/pkg/models"
|
|
)
|
|
|
|
type FinderByFile interface {
|
|
FindByFileID(ctx context.Context, fileID file.ID) ([]*models.Image, error)
|
|
FindByZipFileID(ctx context.Context, zipFileID file.ID) ([]*models.Image, error)
|
|
}
|
|
|
|
type Repository interface {
|
|
FinderByFile
|
|
Destroyer
|
|
models.ImageFileLoader
|
|
}
|
|
|
|
type Service struct {
|
|
File file.Store
|
|
Repository Repository
|
|
}
|