Restored progress
This commit is contained in:
parent
f615cff76d
commit
5244f87411
19 changed files with 1061 additions and 0 deletions
25
internal/core/models.go
Normal file
25
internal/core/models.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue