Files
photoprism/internal/config/client_ext.go
2024-01-20 15:01:40 +01:00

14 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
}