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

Function ExampleServerFiles

grpc/codegen/example_server.go:15–23  ·  view source on GitHub ↗

ExampleServerFiles returns an example gRPC server implementation.

(genpkg string, services *ServicesData)

Source from the content-addressed store, hash-verified

13
14// ExampleServerFiles returns an example gRPC server implementation.
15func ExampleServerFiles(genpkg string, services *ServicesData) []*codegen.File {
16 var fw []*codegen.File
17 for _, svr := range services.Root.API.Servers {
18 if m := exampleServer(genpkg, services, svr); m != nil {
19 fw = append(fw, m)
20 }
21 }
22 return fw
23}
24
25// exampleServer returns an example gRPC server implementation.
26func exampleServer(genpkg string, services *ServicesData, svr *expr.ServerExpr) *codegen.File {

Callers 1

TestExampleServerFilesFunction · 0.70

Calls 1

exampleServerFunction · 0.70

Tested by 1

TestExampleServerFilesFunction · 0.56