PathFiles returns the service path files.
(data *ServicesData)
| 10 | |
| 11 | // PathFiles returns the service path files. |
| 12 | func PathFiles(data *ServicesData) []*codegen.File { |
| 13 | fw := make([]*codegen.File, 2*len(data.Expressions.Services)) |
| 14 | for i := 0; i < len(data.Expressions.Services); i++ { |
| 15 | fw[i*2] = serverPath(data.Expressions.Services[i], data) |
| 16 | fw[i*2+1] = clientPath(data.Expressions.Services[i], data) |
| 17 | } |
| 18 | return fw |
| 19 | } |
| 20 | |
| 21 | // serverPath returns the server file containing the request path constructors |
| 22 | // for the given service. |
nothing calls this directly
no test coverage detected