ClientTypeFiles returns the HTTP transport client types files.
(genpkg string, data *ServicesData)
| 9 | |
| 10 | // ClientTypeFiles returns the HTTP transport client types files. |
| 11 | func 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 |