MCPcopy Create free account
hub / github.com/compozy/agh / applyServerFactoryDefaults

Method applyServerFactoryDefaults

internal/daemon/daemon.go:1036–1047  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1034}
1035
1036func (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
1049func httpServerOptions(deps *RuntimeDeps) []httpapi.Option {
1050 return []httpapi.Option{

Callers 1

applyDefaultsMethod · 0.95

Calls 4

NewFunction · 0.92
NewFunction · 0.92
httpServerOptionsFunction · 0.85
udsServerOptionsFunction · 0.85

Tested by

no test coverage detected