summaryrefslogtreecommitdiff
path: root/internal/config
diff options
context:
space:
mode:
authorPaul Bütow <pbuetow@mimecast.com>2020-02-16 13:10:02 +0000
committerPaul Bütow <pbuetow@mimecast.com>2020-02-16 13:10:02 +0000
commit1bdfd96a799726ff74b52955a25b216de62c14d2 (patch)
tree212a93dae1ec4818121e346e51ce35741e44e0c9 /internal/config
parent221010919b210034ba75d42951caf3965f66aa9d (diff)
drun can execute more complex commands, e.g. small shell scripts
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/common.go27
1 files changed, 10 insertions, 17 deletions
diff --git a/internal/config/common.go b/internal/config/common.go
index 8c07710..f0f1a94 100644
--- a/internal/config/common.go
+++ b/internal/config/common.go
@@ -2,27 +2,19 @@ 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.
+ SSHPort int
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"`
+ DebugEnable bool `json:",omitempty"`
+ 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
+ LogStrategy string
+ LogDir string
+ CacheDir string
+ TmpDir string `json:",omitempty"`
+ PProfEnable bool `json:",omitempty"`
+ PProfPort int `json:",omitempty"`
PProfBindAddress string `json:",omitempty"`
}
@@ -35,6 +27,7 @@ func newDefaultCommonConfig() *CommonConfig {
ExperimentalFeaturesEnable: false,
LogDir: "log",
CacheDir: "cache",
+ TmpDir: "/tmp",
PProfEnable: false,
PProfPort: 6060,
PProfBindAddress: "0.0.0.0",