|
|
il y a 5 ans | |
|---|---|---|
| .github | il y a 5 ans | |
| autocomplete | il y a 9 ans | |
| cmd | il y a 5 ans | |
| docs | il y a 5 ans | |
| internal | il y a 5 ans | |
| manager | il y a 5 ans | |
| systemd | il y a 9 ans | |
| tests | il y a 9 ans | |
| worker | il y a 5 ans | |
| .gitignore | il y a 9 ans | |
| .testpackages.txt | il y a 9 ans | |
| LICENSE | il y a 11 ans | |
| Makefile | il y a 5 ans | |
| README.md | il y a 5 ans | |
| go.mod | il y a 5 ans | |
| go.sum | il y a 5 ans | |
| package.json | il y a 9 ans |
Pre-built binary for Linux x86_64 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/.