photoprism/internal/config/client_ext.go
Michael Mayer db9b33ddea Backend: Change alias name for map[string]interface{} from Value to Map
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-20 15:01:40 +01:00

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
}