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

Method Service

expr/grpc.go:14–21  ·  view source on GitHub ↗

Service returns the service with the given name if any.

(name string)

Source from the content-addressed store, hash-verified

12
13// Service returns the service with the given name if any.
14func (g *GRPCExpr) Service(name string) *GRPCServiceExpr {
15 for _, res := range g.Services {
16 if res.Name() == name {
17 return res
18 }
19 }
20 return nil
21}
22
23// ServiceFor creates a new or returns the existing service definition for
24// the given service.

Callers 1

ServiceForMethod · 0.95

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected