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

Method Parent

expr/http_service.go:150–157  ·  view source on GitHub ↗

Parent returns the parent service if any, nil otherwise.

()

Source from the content-addressed store, hash-verified

148
149// Parent returns the parent service if any, nil otherwise.
150func (svc *HTTPServiceExpr) Parent() *HTTPServiceExpr {
151 if svc.ParentName != "" {
152 if parent := svc.Root.Service(svc.ParentName); parent != nil {
153 return parent
154 }
155 }
156 return nil
157}
158
159// HTTPError returns the service HTTP error with given name if any.
160func (svc *HTTPServiceExpr) HTTPError(name string) *HTTPErrorExpr {

Callers 2

FullPathsMethod · 0.95
PrepareMethod · 0.80

Calls 1

ServiceMethod · 0.65

Tested by

no test coverage detected