serverPath returns the server file containing the request path constructors for the given service.
(svc *expr.HTTPServiceExpr, services *ServicesData)
| 21 | // serverPath returns the server file containing the request path constructors |
| 22 | // for the given service. |
| 23 | func serverPath(svc *expr.HTTPServiceExpr, services *ServicesData) *codegen.File { |
| 24 | sd := services.Get(svc.Name()) |
| 25 | path := filepath.Join(codegen.Gendir, "http", sd.Service.PathName, "server", "paths.go") |
| 26 | return &codegen.File{Path: path, SectionTemplates: pathSections(svc, "server", services)} |
| 27 | } |
| 28 | |
| 29 | // clientPath returns the client file containing the request path constructors |
| 30 | // for the given service. |