e739dd3e89
Enables developers to extend the existing config and API. Initial proof of concept and work in progress. Implementation details may change. Feedback welcome! Signed-off-by: Michael Mayer <michael@photoprism.app>
13 lines
293 B
Go
13 lines
293 B
Go
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
|
|
}
|