예제 #1
0
func NewConfig() *Config {
	return &Config{
		Enabled:   false,
		Registry:  DefaultRegistry,
		Namespace: DefaultNamespace,
		MemSize:   DefaultMemSize,
		SwapSize:  DefaultSwapSize,
		CPUPeriod: toml.Duration(DefaultCPUPeriod),
		CPUQuota:  toml.Duration(DefaultCPUQuota),
	}
}
예제 #2
0
func NewConfig() *Config {
	return &Config{
		Enabled:         false,
		CollectInterval: toml.Duration(DefaultCollectInterval),
	}
}