summaryrefslogtreecommitdiff
path: root/plugins/memory/config.go
blob: e51d09c526c7f8e34a5e17e5be8ff31d430cfeba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package memory

// 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
	}
}