diff options
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 + } +} |