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

Function ClientTypeFiles

http/codegen/client_types.go:11–17  ·  view source on GitHub ↗

ClientTypeFiles returns the HTTP transport client types files.

(genpkg string, data *ServicesData)

Source from the content-addressed store, hash-verified

9
10// ClientTypeFiles returns the HTTP transport client types files.
11func ClientTypeFiles(genpkg string, data *ServicesData) []*codegen.File {
12 fw := make([]*codegen.File, len(data.Expressions.Services))
13 for i, svc := range data.Expressions.Services {
14 fw[i] = clientType(genpkg, svc, make(map[string]struct{}), data)
15 }
16 return fw
17}
18
19// clientType return the file containing the type definitions used by the HTTP
20// transport for the given service client. seen keeps track of the names of the

Callers 1

TestClientTypeFilesFunction · 0.70

Calls 1

clientTypeFunction · 0.70

Tested by 1

TestClientTypeFilesFunction · 0.56