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

Function AddServiceMetaTypeImports

codegen/import.go:188–194  ·  view source on GitHub ↗

AddServiceMetaTypeImports adds meta type imports for each method of the service expr

(header *SectionTemplate, svc *expr.ServiceExpr)

Source from the content-addressed store, hash-verified

186
187// AddServiceMetaTypeImports adds meta type imports for each method of the service expr
188func AddServiceMetaTypeImports(header *SectionTemplate, svc *expr.ServiceExpr) {
189 for _, m := range svc.Methods {
190 AddImport(header, GetMetaTypeImports(m.Payload)...)
191 AddImport(header, GetMetaTypeImports(m.StreamingPayload)...)
192 AddImport(header, GetMetaTypeImports(m.Result)...)
193 }
194}

Callers

nothing calls this directly

Calls 2

AddImportFunction · 0.85
GetMetaTypeImportsFunction · 0.85

Tested by

no test coverage detected