()
| 1034 | } |
| 1035 | |
| 1036 | func (d *Daemon) applyServerFactoryDefaults() { |
| 1037 | if d.httpFactory == nil { |
| 1038 | d.httpFactory = func(_ context.Context, deps RuntimeDeps) (Server, error) { |
| 1039 | return httpapi.New(httpServerOptions(&deps)...) |
| 1040 | } |
| 1041 | } |
| 1042 | if d.udsFactory == nil { |
| 1043 | d.udsFactory = func(_ context.Context, deps RuntimeDeps) (Server, error) { |
| 1044 | return udsapi.New(udsServerOptions(&deps)...) |
| 1045 | } |
| 1046 | } |
| 1047 | } |
| 1048 | |
| 1049 | func httpServerOptions(deps *RuntimeDeps) []httpapi.Option { |
| 1050 | return []httpapi.Option{ |
no test coverage detected