db9b33ddea
Signed-off-by: Michael Mayer <michael@photoprism.app>
13 lines
280 B
Go
13 lines
280 B
Go
package config
|
|
|
|
// ClientExt returns optional client config values by namespace.
|
|
func ClientExt(c *Config, t ClientType) Map {
|
|
configs := Ext()
|
|
result := make(Map, len(configs))
|
|
|
|
for _, conf := range configs {
|
|
result[conf.name] = conf.clientValues(c, t)
|
|
}
|
|
|
|
return result
|
|
}
|