Documentation
¶
Index ¶
- func IsEqualCounts(a, b []int64) bool
- func NewCounts() *counts
- type Code
- type Recorder
- func (r *Recorder) GetCounts() []int64
- func (r *Recorder) Log() *slog.Logger
- func (r *Recorder) Record(ctx context.Context, code Code, file slog.LogValuer, args ...any)
- func (r *Recorder) Report() string
- func (r *Recorder) SetLogger(l *slog.Logger)
- func (r *Recorder) TotalAssets() int64
- func (r *Recorder) TotalProcessed(forcedMissingJSON bool) int64
- func (r *Recorder) TotalProcessedGP() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEqualCounts ¶
IsEqualCounts checks if two slices of int64 have the same elements in the same order. Used for tests only
Types ¶
type Code ¶
type Code int
const ( NotHandled Code = iota DiscoveredImage // = "Scanned image" DiscoveredVideo // = "Scanned video" DiscoveredSidecar // = "Scanned side car file" DiscoveredDiscarded // = "Discarded" DiscoveredUnsupported // = "File type not supported" DiscoveredUseless // = "Useless file" AnalysisAssociatedMetadata AnalysisMissingAssociatedMetadata AnalysisLocalDuplicate UploadNotSelected UploadUpgraded // = "Server's asset upgraded" UploadServerDuplicate // = "Server has photo" UploadServerBetter // = "Server's asset is better" UploadAlbumCreated UploadAddToAlbum // = "Added to an album" UploadLi UploadServerError // = "Server error" Uploaded // = "Uploaded" Stacked // = "Stacked" LivePhoto // = "Live photo" Metadata // = "Metadata files" INFO // = "Info" Written // = "Written" Tagged // = "Tagged" Error MaxCode )
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
func NewRecorder ¶
func (*Recorder) TotalAssets ¶
func (*Recorder) TotalProcessed ¶
func (*Recorder) TotalProcessedGP ¶
Click to show internal directories.
Click to hide internal directories.