ServerTypeFiles returns the HTTP transport type files.
(genpkg string, data *ServicesData)
| 9 | |
| 10 | // ServerTypeFiles returns the HTTP transport type files. |
| 11 | func ServerTypeFiles(genpkg string, data *ServicesData) []*codegen.File { |
| 12 | fw := make([]*codegen.File, len(data.Expressions.Services)) |
| 13 | for i, r := range data.Expressions.Services { |
| 14 | fw[i] = serverType(genpkg, r, data) |
| 15 | } |
| 16 | return fw |
| 17 | } |
| 18 | |
| 19 | // serverType return the file containing the type definitions used by the HTTP |
| 20 | // transport for the given service server. |
nothing calls this directly
no test coverage detected