This service operates as a backup controller for remote-commands-handler. If it detects a lack of commands arriving for the handler to process, it will step in and issue commands in order to maintain a basic level of control.
All dependencies can be run using docker compose. To run locally, create your own .env file.
To run from the command line:
docker compose up -d
set -o allexport; source .env; set +o allexport
go run .- Go v1.22+
- golangci-lint v1.55+
The flag -short will skip integration tests which require running Docker.
go test -race -short -v ./...It is however advised to use make:
make test.unitThe following will run integration tests only:
make test.integrationThis project uses golangci-lint for checking coding style.
Install the latest version of golangci-lint.
golangci-lint run