files

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

func (p *Processor) AddDirectory(ctx context.Context, albumName string, dirPath string) ([]string, error)

func (*Processor) AddFile

func (p *Processor) AddFile(ctx context.Context, albumName string, filePath string) (err error)

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]

	DepCache() *dep.Cache
}

Jump to

Keyboard shortcuts

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