![]() |
1 月之前 | |
---|---|---|
.github | 6 月之前 | |
.umlrootfs | 2 年之前 | |
.vscode | 5 年之前 | |
autocomplete | 9 年之前 | |
cmd | 6 月之前 | |
docs | 2 年之前 | |
internal | 6 月之前 | |
manager | 8 月之前 | |
systemd | 9 年之前 | |
tests | 8 月之前 | |
worker | 6 月之前 | |
.gitignore | 8 月之前 | |
.testpackages.txt | 9 年之前 | |
LICENSE | 11 年之前 | |
Makefile | 8 月之前 | |
README.md | 8 月之前 | |
go.mod | 5 月之前 | |
go.sum | 5 月之前 | |
package.json | 9 年之前 |
Pre-built binary for Linux x86_64 and ARM64 is available at Github releases.
# Architecture
- Manager: Central instance for status and job management
- Worker: Runs mirror jobs
+------------+ +---+ +---+
| Client API | | | Job Status | | +----------+ +----------+
+------------+ | +----------------->| |--->| mirror +---->| mirror |
+------------+ | | | w | | config | | provider |
| Worker API | | H | | o | +----------+ +----+-----+
+------------+ | T | Job Control | r | |
+------------+ | T +----------------->| k | +------------+ |
| Job/Status | | P | Start/Stop/... | e | | mirror job |<----+
| Management | | S | | r | +------^-----+
+------------+ | | Update Status | | +---------+---------+
+------------+ | <------------------+ | | Scheduler |
| BoltDB | | | | | +-------------------+
+------------+ +---+ +---+
# Job Run Process
PreSyncing Syncing Success
+-----------+ +----------+ +-----------+ +-------------+ +--------------+
| pre-job +--+->| pre-exec +--->| job run +--->| post-exec +-+-->| post-success |
+-----------+ ^ +----------+ +-----------+ +-------------+ | +--------------+
| |
| +-----------------+ | Failed
+----------------+ post-fail |<---------------+
+-----------------+
Go version: 1.22
# for native arch
> make all
# for other arch
> make ARCH=linux-arm64 all
Binaries are in build-$ARCH/
, e.g., build-linux-amd64/
.