-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor according to DDD specs (#11)
* initial domain implementation * feed domain * go mod / sum * ports layer kraken web socket * reset socketConn in KrakenWebSocket impl * Feed service for krakenWebSocket * export TicketWithPrice member in ports package * start feeder_service * tdexDaemonPriceUpdater in ports package * add updater_service.go * change tickers to subcribe param for factory function * feeder service base implementation * base implementation of config_service * delete old files * base implementation main * main test * handle close error * improve interupt * change logger in krakenWebSocket.go * feeder domain test * fix message checks in krakenWebSocket.go * krakenWebSocket tests * create the chan in constructor function * stop the feeder in feeder test * add sleep time between two socket read * switch to quitChan pattern in FeedService.go * feed service test * change nigiri endpoint explorer address * main_test pass * cleanup * add mutex in tdexFeeder for isRunning function * delete test file * add integration test + shortest in makefile * add some info logs * add default config to gitignore * add diagram * Update README.md * Update README.md * remove unused uuid * remove uuid package * remove t.Run statements in tests * remove t.Run in main_test.go * Add some comments * add go kraken * use go kraken for web socket implementation * change env var name * test XBT/USDT ticker * test XBT/USDT in feed_service * formatting + cleaning * add interval manament to updater_service * add interval config in config_service * create feeder from config * formatting + cleaning * better error handling in config_service.go * ErrInvalidAssetHash implements error interface * add go docs + clean some code * remove gorilla/websocket package * new config.example file * update README * Update dockerfile * replace baseprice by quoteprice in priceupdater * camel case to underscore filenames * notify interupt channel if SIGTERM / SIGINT occur * add viper * handle default config file for integration test * add viper env vars in Makefile * move tdex_feeder from domain layer to application one * add logs * format test config * Update internal/application/tdex_feeder.go Co-authored-by: Marco Argentieri <[email protected]>
- Loading branch information
1 parent
c330778
commit 488cd2b
Showing
36 changed files
with
1,468 additions
and
445 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
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
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"daemon_endpoint":"127.0.0.1:9000", | ||
"kraken_ws_endpoint":"ws.kraken.com", | ||
"markets": [ | ||
{ | ||
"base_asset":"5ac9f65c0efcc4775e0baec4ec03abdde22473cd3cf33c0419ca290e0751b225","quote_asset":"bffce3908a595436b6ab08f916fea2c9fc6a702f46b268ca354205d127f60c48","kraken_ticker":"LTC/USDT", | ||
"interval":500 | ||
} | ||
] | ||
} |
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.