Move StartTime initialization to application startup hook

- Remove StartTime initialization from globals.New()
- Add setupGlobals function in app.go to set StartTime during fx OnStart
- Simplify globals package to be just a key/value store
- Remove fx dependencies from globals test
This commit is contained in:
2025-07-20 12:05:24 +02:00
parent 36c59cb7b3
commit 26db096913
14 changed files with 657 additions and 46 deletions

19
TODO.md
View File

@@ -1,19 +1,10 @@
# Implementation TODO
## Local Index Database
1. Implement SQLite schema creation
1. Create Index type with all database operations
1. Add transaction support and proper locking
1. Implement file tracking (save, lookup, delete)
1. Implement chunk tracking and deduplication
1. Implement blob tracking and chunk-to-blob mapping
1. Write tests for all index operations
## Chunking and Hashing
1. Implement Rabin fingerprint chunker
1. Create streaming chunk processor
1. Implement SHA256 hashing for chunks
1. Add configurable chunk size parameters
1. Create streaming chunk processor
1. ~~Implement SHA256 hashing for chunks~~ (done in scanner)
1. ~~Add configurable chunk size parameters~~ (done in scanner)
1. Write tests for chunking consistency
## Compression and Encryption
@@ -40,9 +31,9 @@
1. Write tests using MinIO container
## Backup Command - Basic
1. Implement directory walking with exclusion patterns
1. ~~Implement directory walking with exclusion patterns~~ (done with afero)
1. Add file change detection using index
1. Integrate chunking pipeline for changed files
1. ~~Integrate chunking pipeline for changed files~~ (done in scanner)
1. Implement blob upload coordination
1. Add progress reporting to stderr
1. Write integration tests for backup