/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
internal/config/client_ext.go
25 строк
560 B
Michael Mayer
Pkg: Move /service/http/... to /http/... and add package /http/dns
19 окт 2025, 22:08
19 окт 2025, 22:08
a921f82
Код
Авторство
О чём код?
package config // ClientExt collects optional client config values provided by registered extensions. func ClientExt(c *Config, t ClientType) Values { bootConfigs := Ext(StageBoot) initConfigs := Ext(StageInit) result := make(Values, len(bootConfigs)+len(initConfigs)) for _, conf := range bootConfigs { if conf.clientValues == nil { continue } result[conf.name] = conf.clientValues(c, t) } for _, conf := range initConfigs { if conf.clientValues == nil { continue } result[conf.name] = conf.clientValues(c, t) } return result }