From c128865c4c7411c29a59fca9a3a2f95537686d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= Date: Mon, 20 Jan 2020 18:41:05 +0000 Subject: Move commands to cmd/ and move internal dependencies to internal/ --- config/common.go | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 config/common.go (limited to 'config/common.go') diff --git a/config/common.go b/config/common.go deleted file mode 100644 index 8c07710..0000000 --- a/config/common.go +++ /dev/null @@ -1,42 +0,0 @@ -package config - -// CommonConfig stores configuration keys shared by DTail server and client. -type CommonConfig struct { - // The SSH server port number. - SSHPort int - // Enable experimental features. - ExperimentalFeaturesEnable bool `json:",omitempty"` - // Enable extra debug logging (used for deevlopment or debugging purpes only). - DebugEnable bool `json:",omitempty"` - // Enable extra trace logging (used for deevlopment or debugging purpes only). - TraceEnable bool `json:",omitempty"` - // The log strategy to use, one of - // stdout: only log to stdout (useful when used with systemd) - // daily: create a log file for every day - LogStrategy string - // The log directory - LogDir string - // The cache directory - CacheDir string - // Do we want to enable pperf http server? - PProfEnable bool `json:",omitempty"` - // The HTTP port used by PProf - PProfPort int `json:",omitempty"` - // The PProf HTTP server bind address - PProfBindAddress string `json:",omitempty"` -} - -// Create a new default configuration. -func newDefaultCommonConfig() *CommonConfig { - return &CommonConfig{ - SSHPort: 2222, - DebugEnable: false, - TraceEnable: false, - ExperimentalFeaturesEnable: false, - LogDir: "log", - CacheDir: "cache", - PProfEnable: false, - PProfPort: 6060, - PProfBindAddress: "0.0.0.0", - } -} -- cgit v1.2.3