clientPath returns the client file containing the request path constructors for the given service.
(svc *expr.HTTPServiceExpr, services *ServicesData)
| 29 | // clientPath returns the client file containing the request path constructors |
| 30 | // for the given service. |
| 31 | func clientPath(svc *expr.HTTPServiceExpr, services *ServicesData) *codegen.File { |
| 32 | sd := services.Get(svc.Name()) |
| 33 | path := filepath.Join(codegen.Gendir, "http", sd.Service.PathName, "client", "paths.go") |
| 34 | return &codegen.File{Path: path, SectionTemplates: pathSections(svc, "client", services)} |
| 35 | } |
| 36 | |
| 37 | // pathSections returns the sections of the file of the pkg package that |
| 38 | // contains the request path constructors for the given service. |
no test coverage detected