NewServer returns a complete HTTP server that responds to the configuration requests. goland:noinspection GoUnusedExportedFunction
( cfg configuration.HTTPServerConfiguration, h ConfigRequestHandler, logger log.Logger, )
| 10 | // NewServer returns a complete HTTP server that responds to the configuration requests. |
| 11 | //goland:noinspection GoUnusedExportedFunction |
| 12 | func NewServer( |
| 13 | cfg configuration.HTTPServerConfiguration, |
| 14 | h ConfigRequestHandler, |
| 15 | logger log.Logger, |
| 16 | ) (service.Service, error) { |
| 17 | return config.NewServer( |
| 18 | cfg, |
| 19 | h, |
| 20 | logger, |
| 21 | ) |
| 22 | } |