go-rating-stars

command module
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 8 Imported by: 0

README

Build Status codecov Go Reference Go Report Card Docker Repository on Quay

#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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
tests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL