Initial commit with project setup and basic structure established.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const (
|
||||
Version = "1.0.0"
|
||||
DefaultAddr = "0.0.0.0:5032"
|
||||
MutexName = "LocalManagementAgent_Mutex"
|
||||
RequestBodyMax = 1 << 20
|
||||
MaxListEntries = 10000
|
||||
MaxImageQuality = 100
|
||||
DefaultExecTO = 30
|
||||
MaxExecTO = 120
|
||||
)
|
||||
|
||||
func EnvOr(name, fallback string) string {
|
||||
if value := strings.TrimSpace(os.Getenv(name)); value != "" {
|
||||
return value
|
||||
}
|
||||
return fallback
|
||||
}
|
||||
Reference in New Issue
Block a user