![]() |
4 年 前 | |
---|---|---|
.github | 5 年 前 | |
.vscode | 5 年 前 | |
autocomplete | 9 年 前 | |
cmd | 5 年 前 | |
docs | 5 年 前 | |
internal | 4 年 前 | |
manager | 5 年 前 | |
systemd | 9 年 前 | |
tests | 9 年 前 | |
worker | 4 年 前 | |
.gitignore | 5 年 前 | |
.testpackages.txt | 9 年 前 | |
LICENSE | 11 年 前 | |
Makefile | 5 年 前 | |
README.md | 5 年 前 | |
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.13
> make all
Binaries in the build-linux-amd64/
.