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

Function PathFiles

http/codegen/paths.go:12–19  ·  view source on GitHub ↗

PathFiles returns the service path files.

(data *ServicesData)

Source from the content-addressed store, hash-verified

10
11// PathFiles returns the service path files.
12func 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.

Callers

nothing calls this directly

Calls 2

serverPathFunction · 0.85
clientPathFunction · 0.85

Tested by

no test coverage detected