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

Function NewServicesData

http/codegen/service_data.go:582–588  ·  view source on GitHub ↗

NewServicesData creates a new ServicesData instance for the given service data.

(services *service.ServicesData, expressions *expr.HTTPExpr)

Source from the content-addressed store, hash-verified

580
581// NewServicesData creates a new ServicesData instance for the given service data.
582func NewServicesData(services *service.ServicesData, expressions *expr.HTTPExpr) *ServicesData {
583 return &ServicesData{
584 ServicesData: services,
585 Expressions: expressions,
586 HTTPData: make(map[string]*ServiceData),
587 }
588}
589
590// Get retrieves the transport data for the service with the given name
591// computing it if needed. It returns nil if there is no service with the given

Callers 3

TestExampleServerFilesFunction · 0.70
TestExampleCLIFilesFunction · 0.70
CreateHTTPServicesFunction · 0.70

Calls

no outgoing calls

Tested by 2

TestExampleServerFilesFunction · 0.56
TestExampleCLIFilesFunction · 0.56