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

Function serverPath

http/codegen/paths.go:23–27  ·  view source on GitHub ↗

serverPath returns the server file containing the request path constructors for the given service.

(svc *expr.HTTPServiceExpr, services *ServicesData)

Source from the content-addressed store, hash-verified

21// serverPath returns the server file containing the request path constructors
22// for the given service.
23func 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.

Callers 3

PathFilesFunction · 0.85
TestPathsFunction · 0.85
TestPathTrailingShashFunction · 0.85

Calls 3

pathSectionsFunction · 0.85
NameMethod · 0.65
GetMethod · 0.45

Tested by 2

TestPathsFunction · 0.68
TestPathTrailingShashFunction · 0.68