config

package
v0.0.0-...-1fb6433 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName       = "go-api-base"
	AppVersion    = getEnvOrDefault("GO_API_BASE_APP_VERSION", "1.0.0")
	RestPort      = getEnvOrDefault("GO_API_BASE_REST_PORT", "12580")
	GrpcPort      = getEnvOrDefault("GO_API_BASE_GRPC_PORT", "12581")
	PidPath       = getEnvOrDefault("GO_API_BASE_PID_PATH", fmt.Sprintf("/tmp/%s.pid", AppName))
	LogPath       = getEnvOrDefault("GO_API_BASE_LOG_PATH", fmt.Sprintf("/tmp/%s.out", AppName))
	UseMigration  = true
	MigrationPath = getEnvOrDefault("GO_API_BASE_MIGRATION_PATH", "")
	LogOutput     *reopen.FileWriter
	ExecDir       = ""
	Env           = getEnvOrDefault("ENV", "dev")
)

Functions

func InitializeLogging

func InitializeLogging()

Types

This section is empty.

Jump to

Keyboard shortcuts

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