Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalPhoto ¶
type LocalPhoto interface {
RemotePhoto
FilePath() string
CreatedAt() time.Time
SetCreatedAt(t time.Time)
Thumbnail() []byte
NewJpgReader() (io.ReadCloser, error)
}
type MetadataRepo ¶
type MetadataRepo interface {
MetadataRepoReader
MetadataRepoWriter
}
type MetadataRepoReader ¶
type MetadataRepoReader interface {
GetAll() []RemotePhoto
Exists(id string) (bool, error)
GetByDir(name string) ([]RemotePhoto, error)
GetByDirAndId(dir, id string) (RemotePhoto, error)
GetDirs() ([]string, error)
Reload(ctx context.Context) error
}
type MetadataRepoWriter ¶
type ReadOnlyStorage ¶
type ReadOnlyStorage interface {
StorageReader
FindFiles(rootPath string, fileExt ...string) []FileInfo
}
type RemotePhoto ¶
type Storage ¶
type Storage interface {
StorageReader
StorageWriter
Exists(ctx context.Context, path string) bool
}
type StorageReader ¶
Click to show internal directories.
Click to hide internal directories.