2025-01-01 22:18:08 +01:00
|
|
|
package core
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type File struct {
|
2025-04-13 12:50:35 +02:00
|
|
|
ID string
|
|
|
|
ParentDirectory Folder
|
|
|
|
Metadata FileMetadata
|
|
|
|
State SynchronizationState
|
2025-01-01 22:18:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2025-04-13 12:50:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type Folder struct {
|
|
|
|
ID string
|
|
|
|
Files []File
|
|
|
|
Subfolders []Folder
|
|
|
|
|
|
|
|
Name string
|
|
|
|
Path string
|
2025-01-01 22:18:08 +01:00
|
|
|
}
|