2022-07-05 23:13:34 +02:00
|
|
|
package config
|
|
|
|
|
|
|
|
// ClientExt returns optional client config values by namespace.
|
|
|
|
func ClientExt(c *Config, t ClientType) Values {
|
2022-10-09 17:16:49 +02:00
|
|
|
configs := Ext()
|
2022-07-05 23:13:34 +02:00
|
|
|
result := make(Values, len(configs))
|
|
|
|
|
|
|
|
for _, conf := range configs {
|
|
|
|
result[conf.name] = conf.clientValues(c, t)
|
|
|
|
}
|
|
|
|
|
|
|
|
return result
|
|
|
|
}
|