Restored progress

This commit is contained in:
Gu://em_ 2025-01-01 22:18:08 +01:00
parent f615cff76d
commit 5244f87411
19 changed files with 1061 additions and 0 deletions

25
internal/core/models.go Normal file
View file

@ -0,0 +1,25 @@
package core
import (
"time"
)
type File struct {
ID string
ParentDirectory string
Metadata FileMetadata
State SynchronizationState
}
type FileMetadata struct {
Name string
Size int64
ModifiedTime time.Time
Hash string // For comparing file content
}
type SynchronizationState struct {
Status string // "pending", "in_progress", "completed", "error"
Progress float64
LastError error
}