Fn-prefix everything (#545)

* Fn-prefix everything

Closes: #492

* Global replacement

* missed one fn_
This commit is contained in:
Denis Makogon
2017-11-30 03:50:24 +02:00
committed by Chad Arimura
parent 64997ed0fe
commit 5c68a88599
18 changed files with 62 additions and 57 deletions

View File

@@ -37,13 +37,13 @@ var (
)
const (
EnvLogLevel = "LOG_LEVEL"
EnvMQURL = "MQ_URL"
EnvDBURL = "DB_URL"
EnvLOGDBURL = "LOGSTORE_URL"
EnvPort = "PORT" // be careful, Gin expects this variable to be "port"
EnvAPICORS = "API_CORS"
EnvZipkinURL = "ZIPKIN_URL"
EnvLogLevel = "FN_LOG_LEVEL"
EnvMQURL = "FN_MQ_URL"
EnvDBURL = "FN_DB_URL"
EnvLOGDBURL = "FN_LOGSTORE_URL"
EnvPort = "FN_PORT" // be careful, Gin expects this variable to be "port"
EnvAPICORS = "FN_API_CORS"
EnvZipkinURL = "FN_ZIPKIN_URL"
// Defaults
DefaultLogLevel = "info"
@@ -298,7 +298,7 @@ func (s *Server) Start(ctx context.Context) {
func (s *Server) startGears(ctx context.Context, cancel context.CancelFunc) {
// By default it serves on :8080 unless a
// PORT environment variable was defined.
// FN_PORT environment variable was defined.
listen := fmt.Sprintf(":%d", getEnvInt(EnvPort, DefaultPort))
const runHeader = `