photoprism/internal/config/client_ext.go

14 lines
293 B
Go
Raw Normal View History

package config
// ClientExt returns optional client config values by namespace.
func ClientExt(c *Config, t ClientType) Values {
configs := Extensions()
result := make(Values, len(configs))
for _, conf := range configs {
result[conf.name] = conf.clientValues(c, t)
}
return result
}