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

Function ClientTypeFiles

grpc/codegen/client_types.go:13–19  ·  view source on GitHub ↗

ClientTypeFiles returns the client types files containing all the client interfaces and types needed to implement gRPC client.

(genpkg string, services *ServicesData)

Source from the content-addressed store, hash-verified

11// ClientTypeFiles returns the client types files containing all the client
12// interfaces and types needed to implement gRPC client.
13func ClientTypeFiles(genpkg string, services *ServicesData) []*codegen.File {
14 fw := make([]*codegen.File, len(services.Root.API.GRPC.Services))
15 for i, svc := range services.Root.API.GRPC.Services {
16 fw[i] = clientType(genpkg, svc, services)
17 }
18 return fw
19}
20
21// clientType returns the file defining the gRPC client types.
22func clientType(genpkg string, svc *expr.GRPCServiceExpr, services *ServicesData) *codegen.File {

Callers 1

TestClientTypeFilesFunction · 0.70

Calls 1

clientTypeFunction · 0.70

Tested by 1

TestClientTypeFilesFunction · 0.56