summaryrefslogtreecommitdiff
path: root/plugins/memory/memorykv/config.go
blob: a8a8993f782f6482e29618d11753870b39898afe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
	}
}