summaryrefslogtreecommitdiff
path: root/plugins/config/config.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-03-31 18:58:03 +0300
committerValery Piashchynski <[email protected]>2021-03-31 18:58:03 +0300
commit955c6b7ca530172acc646c55e7e3eda04f543310 (patch)
treea816de47e7a1e5d6cabe836a30c7552e6023c3d2 /plugins/config/config.go
parentae6d488c9da200203c78af23518ea4f2f2e96773 (diff)
- Config: Add the ability to pass General config options to any plugin
Diffstat (limited to 'plugins/config/config.go')
-rw-r--r--plugins/config/config.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/config/config.go b/plugins/config/config.go
new file mode 100644
index 00000000..b5807921
--- /dev/null
+++ b/plugins/config/config.go
@@ -0,0 +1,10 @@
+package config
+
+import "time"
+
+// General is the part of the config plugin which contains general for the whole RR2 parameters
+// For example - http timeouts, headers sizes etc and also graceful shutdown timeout should be the same across whole application
+type General struct {
+ // GracefulTimeout for the temporal and http
+ GracefulTimeout time.Duration
+}