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

Function serviceContext

http/codegen/service_data.go:2938–2940  ·  view source on GitHub ↗

serviceContext returns an attribute context for service types.

(pkg string, scope *codegen.NameScope)

Source from the content-addressed store, hash-verified

2936
2937// serviceContext returns an attribute context for service types.
2938func serviceContext(pkg string, scope *codegen.NameScope) *codegen.AttributeContext {
2939 return codegen.NewAttributeContext(false, false, true, pkg, scope)
2940}
2941
2942// viewContext returns an attribute context for projected types.
2943func viewContext(pkg string, scope *codegen.NameScope) *codegen.AttributeContext {

Callers 8

buildPayloadDataMethod · 0.85
buildResponsesMethod · 0.85
buildErrorsDataMethod · 0.85
buildRequestBodyTypeMethod · 0.85
buildResponseBodyTypeMethod · 0.85
extractPathParamsMethod · 0.85
extractQueryParamsMethod · 0.85
initWebSocketDataMethod · 0.85

Calls 1

NewAttributeContextFunction · 0.92

Tested by

no test coverage detected