Example #1
0
// NewConfig returns an instance of Config with reasonable defaults.
func NewConfig() *Config {
	c := &Config{}
	c.Meta = meta.NewConfig()
	c.Registration = registration.NewConfig()
	c.Selfheal = selfheal.NewConfig()
	return c
}
Example #2
0
// NewConfig returns an instance of Config with reasonable defaults.
func NewConfig() *Config {
	c := &Config{}
	c.Meta = meta.NewConfig()
	c.HTTPD = httpd.NewConfig()
	c.Database = database.NewConfig()

	c.RegMeta = regmeta.NewConfig()
	c.Registration = registration.NewConfig()
	c.Selfheal = selfheal.NewConfig()
	return c
}