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

Method Get

http/codegen/service_data.go:593–603  ·  view source on GitHub ↗

Get retrieves the transport data for the service with the given name computing it if needed. It returns nil if there is no service with the given name.

(name string)

Source from the content-addressed store, hash-verified

591// computing it if needed. It returns nil if there is no service with the given
592// name.
593func (sds *ServicesData) Get(name string) *ServiceData {
594 if data, ok := sds.HTTPData[name]; ok {
595 return data
596 }
597 svc := sds.Expressions.Service(name)
598 if svc == nil {
599 return nil
600 }
601 sds.HTTPData[name] = sds.analyze(svc)
602 return sds.HTTPData[name]
603}
604
605// Endpoint returns the service method transport data for the endpoint with the
606// given name, nil if there isn't one.

Callers 15

RequestDecoderFunction · 0.45
RequestEncoderFunction · 0.45
ResponseDecoderFunction · 0.45
SetContentTypeFunction · 0.45
HandleMethod · 0.45
TestRequestEncoderFunction · 0.45
TestSmartRedirectSlashesFunction · 0.45
RequestIDFunction · 0.45
PopulateRequestContextFunction · 0.45
TraceFunction · 0.45
fromFunction · 0.45

Calls 2

analyzeMethod · 0.95
ServiceMethod · 0.65

Tested by 4

TestRequestEncoderFunction · 0.36
TestSmartRedirectSlashesFunction · 0.36
TestRequestIDFunction · 0.36