CoSync/internal/core/models.go

34 lines
567 B
Go
Raw Normal View History

2025-01-01 22:18:08 +01:00
package core
import (
"time"
)
type File struct {
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
}
type Folder struct {
ID string
Files []File
Subfolders []Folder
Name string
Path string
2025-01-01 22:18:08 +01:00
}