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

Method Get

codegen/service/service_data.go:646–656  ·  view source on GitHub ↗

Get retrieves the 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

644// Get retrieves the data for the service with the given name computing it if
645// needed. It returns nil if there is no service with the given name.
646func (d *ServicesData) Get(name string) *Data {
647 if data, ok := d.Services[name]; ok {
648 return data
649 }
650 service := d.Root.Service(name)
651 if service == nil {
652 return nil
653 }
654 d.Services[name] = d.analyze(service)
655 return d.Services[name]
656}
657
658// Method returns the service method data for the method with the given name,
659// nil if there isn't one.

Callers 13

TransportFunction · 0.95
ServiceFunction · 0.95
ExampleFunction · 0.95
ConvertFilesFunction · 0.45
ConvertFileFunction · 0.45
ViewsFileFunction · 0.45
FilesFunction · 0.45
InterceptorsFilesFunction · 0.45
ExampleServiceFilesFunction · 0.45
exampleServiceFileFunction · 0.45
EndpointFileFunction · 0.45
exampleInterceptorsFileFunction · 0.45

Calls 2

analyzeMethod · 0.95
ServiceMethod · 0.65

Tested by

no test coverage detected