From 0c22e732703a672e3728d6a7db476955fb661fc9 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 31 Mar 2021 18:58:03 +0300 Subject: - Config: Add the ability to pass General config options to any plugin --- plugins/config/config.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 plugins/config/config.go (limited to 'plugins/config/config.go') 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 +} -- cgit v1.2.3