Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EnvironmentVariableName is the name of the environment variable that defines the application mode. EnvironmentVariableName = "ECHO_ENV" // Development environment name Development = "development" // Test environment name Test = "test" // Production environment name Production = "production" )
Variables ¶
View Source
var Engine engines.Engine
Engine is the current instance of storage.
View Source
var Log = logrus.New()
Log is an instance of Logrus logger
Functions ¶
Types ¶
type Config ¶
type Config struct { Version string `env:"APP_VERSION"` Workspace string `env:"LSS_WORKSPACE" envDefault:"./workspace"` UploadSizeLimit string `env:"LSS_UPLOAD_SIZE_LIMIT" envDefault:"8G"` RouterNamespace string `env:"LSS_ROUTER_NAMESPACE" envDefault:""` }
Config holds all configuration for our program.
var Cfg *Config
Cfg variable holds all LSS configuration.
Click to show internal directories.
Click to hide internal directories.