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

Function transTmplFuncs

grpc/codegen/server.go:179–185  ·  view source on GitHub ↗
(s *expr.GRPCServiceExpr, services *ServicesData)

Source from the content-addressed store, hash-verified

177}
178
179func transTmplFuncs(s *expr.GRPCServiceExpr, services *ServicesData) map[string]any {
180 return map[string]any{
181 "goTypeRef": func(dt expr.DataType) string {
182 return services.ServicesData.Get(s.Name()).Scope.GoTypeRef(&expr.AttributeExpr{Type: dt})
183 },
184 }
185}
186
187// typeConversionData produces the template data suitable for executing the
188// "type_conversion" template.

Callers 2

serverEncodeDecodeFunction · 0.70
clientEncodeDecodeFunction · 0.70

Calls 3

GoTypeRefMethod · 0.80
NameMethod · 0.65
GetMethod · 0.45

Tested by

no test coverage detected