categraf/config/interval.go

10 lines
143 B
Go

package config
type Interval struct {
Interval Duration `toml:"interval"`
}
func (i Interval) GetInterval() Duration {
return i.Interval
}