![]() |
il y a 8 mois | |
---|---|---|
.github | il y a 8 mois | |
.umlrootfs | il y a 2 ans | |
.vscode | il y a 5 ans | |
autocomplete | il y a 9 ans | |
cmd | il y a 8 mois | |
docs | il y a 2 ans | |
internal | il y a 4 ans | |
manager | il y a 8 mois | |
systemd | il y a 9 ans | |
tests | il y a 9 ans | |
worker | il y a 1 an | |
.gitignore | il y a 5 ans | |
.testpackages.txt | il y a 9 ans | |
LICENSE | il y a 11 ans | |
Makefile | il y a 8 mois | |
README.md | il y a 5 ans | |
go.mod | il y a 8 mois | |
go.sum | il y a 8 mois | |
package.json | il y a 9 ans |
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/
.