influxdb/services/retention/config.go

19 lines
430 B
Go
Raw Normal View History

2015-06-04 21:31:23 +00:00
package retention
2015-06-05 04:36:16 +00:00
import (
"time"
2015-06-05 04:36:16 +00:00
"github.com/influxdb/influxdb/toml"
)
2015-06-04 21:31:23 +00:00
// Config represents the configuration for the retention service.
2015-06-04 21:31:23 +00:00
type Config struct {
2015-06-05 04:36:16 +00:00
Enabled bool `toml:"enabled"`
CheckInterval toml.Duration `toml:"check-interval"`
2015-06-04 21:31:23 +00:00
}
// NewConfig returns an instance of Config with defaults.
func NewConfig() Config {
return Config{Enabled: true, CheckInterval: toml.Duration(30 * time.Minute)}
}