MCPcopy Create free account
hub / github.com/goadesign/goa / clientPath

Function clientPath

http/codegen/paths.go:31–35  ·  view source on GitHub ↗

clientPath returns the client file containing the request path constructors for the given service.

(svc *expr.HTTPServiceExpr, services *ServicesData)

Source from the content-addressed store, hash-verified

29// clientPath returns the client file containing the request path constructors
30// for the given service.
31func 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.

Callers 1

PathFilesFunction · 0.85

Calls 3

pathSectionsFunction · 0.85
NameMethod · 0.65
GetMethod · 0.45

Tested by

no test coverage detected