diff options
author | Valery Piashchynski <[email protected]> | 2021-09-02 20:09:01 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-02 20:09:01 +0300 |
commit | 6749db4a2d39fa70b426bcf50edf66a176c07f57 (patch) | |
tree | f6f92c9f0016f6bcac6a9aa45ccc961eebf90018 /plugins/memory/memorykv/config.go | |
parent | 0437d1f58514f694ea86e8176e621c009cd510f9 (diff) | |
parent | 4524f8c5af045ed5048250b63b7859eaeb4f24a1 (diff) |
#778: feat(refactor): jobs code adjustingv2.4.0
#778: feat(refactor): jobs code adjusting
Diffstat (limited to 'plugins/memory/memorykv/config.go')
-rw-r--r-- | plugins/memory/memorykv/config.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/memory/memorykv/config.go b/plugins/memory/memorykv/config.go new file mode 100644 index 00000000..a8a8993f --- /dev/null +++ b/plugins/memory/memorykv/config.go @@ -0,0 +1,14 @@ +package memorykv + +// Config is default config for the in-memory driver +type Config struct { + // Interval for the check + Interval int +} + +// InitDefaults by default driver is turned off +func (c *Config) InitDefaults() { + if c.Interval == 0 { + c.Interval = 60 // seconds + } +} |