repositorypackage
0.1.7
Repository: https://github.com/vsychov/go-rating-stars.git
Documentation: pkg.go.dev
# README
#Load env execute bash command
set -o allexport; source .env; set +o allexport
#Health check
curl -iL -XGET -H "X-Health-Check: 1" http://localhost:8080
#Storages GoVote can use Postgress or Redis for store data.
#Generate mocks
mockery --output tests/mocks --recursive --name=StorageInterface
#Env variables PGSQL_ADDR=pgsql PGSQL_USER=gorm PGSQL_PASSWORD=gorm PGSQL_DBNAME=gorm PGSQL_PORT=9920 PGSQL_SSLMODE=disable PGSQL_TIMEZONE=Europe/London
REDIS_ADDR= REDIS_DB= REDIS_PASSWORD=
STORAGE_TYPE=pgsql or redis (default - pgsql), redis not fully implemented yet
CLIENT_IP_HEADER="X-Real-Ip" #gin TrustedPlatform