Documentation
¶
Index ¶
- Constants
- type Processor
- func (p *Processor) AddDirectory(ctx context.Context, albumName string, dirPath string) ([]string, error)
- func (p *Processor) AddFile(ctx context.Context, albumName string, filePath string, ...) (h uniq.Hash, idx func(), err error)
- func (p *Processor) AddThumbnail(ctx context.Context, imgHash uniq.Hash, size photo.ThumbSize, filePath string) error
- type ProcessorDeps
Constants ¶
View Source
const (
ErrSkip = ctxd.SentinelError("unsupported file skipped")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func NewProcessor(deps ProcessorDeps) *Processor
func (*Processor) AddDirectory ¶
type ProcessorDeps ¶
type ProcessorDeps interface { StatsTracker() stats.Tracker CtxdLogger() ctxd.Logger PhotoAlbumFinder() uniq.Finder[photo.Album] PhotoAlbumEnsurer() uniq.Ensurer[photo.Album] PhotoAlbumImageAdder() photo.AlbumImageAdder PhotoImageEnsurer() uniq.Ensurer[photo.Image] PhotoImageIndexer() photo.ImageIndexer PhotoGpxEnsurer() uniq.Ensurer[photo.Gpx] PhotoThumbnailer() photo.Thumbnailer DepCache() *dep.Cache }
Click to show internal directories.
Click to hide internal directories.