CoSync/internal/core/models.go
2025-01-01 22:18:08 +01:00

25 lines
441 B
Go

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
}