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

Function ServerTypeFiles

http/codegen/server_types.go:11–17  ·  view source on GitHub ↗

ServerTypeFiles returns the HTTP transport type files.

(genpkg string, data *ServicesData)

Source from the content-addressed store, hash-verified

9
10// ServerTypeFiles returns the HTTP transport type files.
11func ServerTypeFiles(genpkg string, data *ServicesData) []*codegen.File {
12 fw := make([]*codegen.File, len(data.Expressions.Services))
13 for i, r := range data.Expressions.Services {
14 fw[i] = serverType(genpkg, r, data)
15 }
16 return fw
17}
18
19// serverType return the file containing the type definitions used by the HTTP
20// transport for the given service server.

Callers

nothing calls this directly

Calls 1

serverTypeFunction · 0.70

Tested by

no test coverage detected