This repository hold all the backend components for Condensat Bank.
Log can be stored into mariadb.
docker run --name mariadb-test -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_USER=condensat -e MYSQL_PASSWORD=condensat -e MYSQL_DATABASE=condensat -v $(pwd)/tests/database/permissions.sql:/docker-entrypoint-initdb.d/permissions.sql:ro -p 3306:3306 -d mariadb:10.3
Redis is used as a cache for logging to avoid message loses.
docker run --name redis-test -p 6379:6379 -d redis:5-alpine
The log grabber fetch log entries from redis and display them. Log entries are remove from redis after store
go run logger/cmd/grabber/main.go --log=debug > ../debug.log
The log grabber fetch log entries from redis and store them to database. Log entries are remove from redis after store
go run logger/cmd/grabber/main.go --log=debug --withDatabase=true
A logging component setup a RedisLogger and log normally.
go run logger/cmd/example/main.go --appName=Foo --log=debug
Nats is used for internal messaging system between components.
docker run --name nats-test -p 4222:4222 -d nats:2.1-alpine
go test -v ./...