Function
updateData
(s *codegen.SectionTemplate, svcdata []*httpcodegen.ServiceData, hasHTTP bool)
Source from the content-addressed store, hash-verified
| 98 | } |
| 99 | |
| 100 | func 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 | |
| 107 | const logHTTPMount = `{{- range .Services }} |
| 108 | for _, m := range {{ .Service.VarName }}Server.Mounts { |
Tested by
no test coverage detected