-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Appserver and visor improvements. (#357)
Appserver improvements: * Combined the appserver.Server and appserver.ProcManager concepts. * Have one rpc.Server per app proc. * Simplified app.Client initialization. * Visor to App initialization is done via a single env defined for the app PROC_CONFIG which contains a JSON object. * App to Visor initialization is done by App connecting the Visor via app server address. The first 16 bytes that the App sends to Visor is the appcommon.ProcKey. * Changed appcommon.ProcKey format so that it is a deterministic length. * Improved app logging and removed any possibilities of log database race conditions with bbolt. * Various logging improvements. App management, visor config, startup and shutdown improvements: * Separated app-associated functionality within /pkg/visor into /pkg/app/launcher. * Added the concept of visor.BaseConfig() to simplify obtaining default values. * Made startup/shutdown logic modular and introduced init and shutdown stacks. * Shutdown now uses module-based timeouts and wait groups. Changes as suggested by @Darkren and @nkryuchkov
- Loading branch information
志宇
authored
May 15, 2020
1 parent
442b35e
commit 6c4c0d5
Showing
72 changed files
with
2,802 additions
and
2,891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,15 @@ stop: ## Stop running skywire-visor on host | |
config: ## Generate skywire.json | ||
-./skywire-cli visor gen-config -o ./skywire.json -r | ||
|
||
install-generate: ## Installs required execs for go generate. | ||
${OPTS} go install github.com/mjibson/esc | ||
${OPTS} go install github.com/vektra/mockery/cmd/mockery | ||
# If the following does not work, you may need to run: | ||
# git config --global [email protected]:.insteadOf https://github.com/ | ||
# Source: https://stackoverflow.com/questions/27500861/whats-the-proper-way-to-go-get-a-private-repository | ||
# We are using 'go get' instead of 'go install' here, because we don't have a git tag in which 'readmegen' is already implemented. | ||
${OPTS} go get -u github.com/SkycoinPro/skywire-services/cmd/readmegen@master | ||
|
||
generate: ## Generate mocks and config README's | ||
go generate ./... | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.