MCPcopy Create free account
hub / github.com/goadesign/goa / updateData

Function updateData

jsonrpc/codegen/example_server.go:100–105  ·  view source on GitHub ↗
(s *codegen.SectionTemplate, svcdata []*httpcodegen.ServiceData, hasHTTP bool)

Source from the content-addressed store, hash-verified

98}
99
100func updateData(s *codegen.SectionTemplate, svcdata []*httpcodegen.ServiceData, hasHTTP bool) {
101 s.Data.(map[string]any)["JSONRPCServices"] = svcdata
102 if !hasHTTP {
103 delete(s.Data.(map[string]any), "Services")
104 }
105}
106
107const logHTTPMount = `{{- range .Services }}
108 for _, m := range {{ .Service.VarName }}Server.Mounts {

Callers 1

exampleServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected