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

Method Service

expr/http.go:54–61  ·  view source on GitHub ↗

Service returns the service with the given name if any.

(name string)

Source from the content-addressed store, hash-verified

52
53// Service returns the service with the given name if any.
54func (h *HTTPExpr) Service(name string) *HTTPServiceExpr {
55 for _, res := range h.Services {
56 if res.Name() == name {
57 return res
58 }
59 }
60 return nil
61}
62
63// ServiceFor creates a new or returns the existing service definition for the
64// given service.

Callers 1

ServiceForMethod · 0.95

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected