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

Method Get

grpc/codegen/service_data.go:425–435  ·  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

423// computing it if needed. It returns nil if there is no service with the given
424// name.
425func (d *ServicesData) Get(name string) *ServiceData {
426 if data, ok := d.GRPCServices[name]; ok {
427 return data
428 }
429 service := d.Root.API.GRPC.Service(name)
430 if service == nil {
431 return nil
432 }
433 d.GRPCServices[name] = d.analyze(service)
434 return d.GRPCServices[name]
435}
436
437// Endpoint returns the endpoint data for the endpoint with the given name, nil
438// if there isn't one.

Callers 15

MetadataValueFunction · 0.45
clientTypeFunction · 0.45
serverFileFunction · 0.45
serverEncodeDecodeFunction · 0.45
transTmplFuncsFunction · 0.45
ClientCLIFilesFunction · 0.45
endpointParserFunction · 0.45
payloadBuildersFunction · 0.45
protoFileFunction · 0.45
exampleServerFunction · 0.45
analyzeMethod · 0.45
exampleCLIFunction · 0.45

Calls 2

analyzeMethod · 0.95
ServiceMethod · 0.65

Tested by

no test coverage detected