summaryrefslogtreecommitdiff
path: root/plugins/config/config.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-03-31 18:58:03 +0300
committerbricelalu <[email protected]>2021-04-03 16:36:16 +0200
commit0c22e732703a672e3728d6a7db476955fb661fc9 (patch)
tree3cca64f3f226ffa0c42aabb027e2ed82c3213c9d /plugins/config/config.go
parent68a8cd78ba52f90ae263e970fbfa8920207e8b5d (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
+}